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

Re: svn commit: r35050 - trunk/subversion/libsvn_subr

From: Greg Stein <gstein_at_gmail.com>
Date: Fri, 9 Jan 2009 03:57:26 -0800

On Fri, Jan 9, 2009 at 03:55, Julian Foad <julianfoad_at_btopenworld.com> wrote:
> Greg Stein wrote:
>> eh? why "void *" in this case? The proper type would seem to be
>> "unsigned char *" (and still const, of course)
>
> The function is intended to operate on an arbitrary block of memory,
> starting at a given address and going on for the given number of bytes.
> "void *" is the canonical type for the address of an arbitrary block of
> memory. Using a specific type like "unsigned char *" is just asking
> callers to have to do type-casting for no benefit. No?

Fair enough!

Thanks,
-g
Received on 2009-01-09 12:57:40 CET

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.