[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 2637 - trunk/subversion/mod_dav_svn

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-07-23 11:54:08 CEST

On Tue, Jul 23, 2002 at 01:16:38AM -0500, sussman@tigris.org wrote:
>...
> + {
> + apr_off_t len = 0;
> +
> + /* our property, but not defined on collection resources */
> + if (resource->collection)
> + return DAV_PROP_INSERT_NOTSUPP;
> +
> + serr = svn_fs_file_length(&len, resource->info->root.root,
> + resource->info->repos_path, p);
> + if (serr != NULL)
> + {
> + value = "0"; /* ### what to do? */
> + break;
> + }
>
> - /* ### call svn_fs_file_length() */
> - value = "0";
> - break;
> + value = apr_psprintf(p, "%ld", (long int) len);

APR_OFF_T_FMT is better than the cast.

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 Tue Jul 23 11:51:56 2002

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.