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

Re: svn commit: r18548 - trunk/subversion/libsvn_ra_serf

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2006-02-23 18:02:50 CET

On Tue, 21 Feb 2006 jerenkrantz@tigris.org wrote:

> +static svn_error_t *
> +svndiff_stream_write(void *file_baton,
> + const char *data,
> + apr_size_t *len)
> +{
> + file_context_t *ctx = file_baton;
> + apr_status_t status;
> +
> + status = apr_file_write_full(ctx->svndiff, data, *len, NULL);
> + if (status)
> + return svn_error_wrap_apr(status, _("Failed writing updated file"));
> +
Why not use svn_io_file_write_full and get the error handling for free?

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 23 18:13:28 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.