[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 1211 - trunk/subversion/libsvn_subr trunk/subversion/tests/libsvn_subr

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-02-08 04:23:10 CET

On Thu, Feb 07, 2002 at 08:44:23PM -0600, philip@tigris.org wrote:
>...
> + apr_err = apr_file_name_get (&fname, file);
> + if (!APR_STATUS_IS_SUCCESS(apr_err))
> + return svn_error_create
> + (apr_err, 0, NULL, pool,
> + "svn_string_from_aprfile: failed to get filename");
> +
> + apr_err = apr_stat (&finfo, fname, APR_FINFO_SIZE, pool);
> + if (!APR_STATUS_IS_SUCCESS(apr_err))
> + return svn_error_createf
> + (apr_err, 0, NULL, pool,
> + "svn_string_from_aprfile: failed to stat '%s'", fname);

This can be simplified by using apr_file_info_get().

[ hmm. the prototype for that is in the wrong header. ]

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:05 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.