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

Re: [PATCH REPOST] Trace and canelation editor changes part 4

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2002-01-25 08:52:57 CET

On Thu, Jan 24, 2002 at 06:28:57PM -0800, Greg Stein wrote:
> On Mon, Jan 21, 2002 at 02:53:10AM -0800, Bill Tutt wrote:
[snip]
> > +static svn_error_t *
> > +should_i_cancel(struct cancel_baton *cb)
> > +{
> > + if (cb->should_i_cancel(cb->inner_baton))
> > + {
> > + return svn_error_create (SVN_ERR_USER_CANCELED,
> > + 0,
> > + 0,
> > + cb->pool,
> > + "User canceled operation.");
>
> The third param is clearer as NULL, since that param is a ptr.
[snip]

Especially since NULL is not guaranteed to be 0. (I think 0 is
a valid pointer on VAX if I remember correctly.)

-- 
Michael Wood <mwood@its.uct.ac.za>
---------------------------------------------------------------------
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:36:59 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.