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

Re: svn commit: r1067186 - in /subversion/trunk/subversion: include/svn_checksum.h libsvn_client/export.c libsvn_subr/checksum.c

From: Blair Zajac <blair_at_orcaware.com>
Date: Fri, 4 Feb 2011 09:27:52 -0800

On Feb 4, 2011, at 6:57 AM, hwright_at_apache.org wrote:

> Author: hwright
> Date: Fri Feb 4 14:57:14 2011
> New Revision: 1067186
>
> URL: http://svn.apache.org/viewvc?rev=1067186&view=rev
> Log:
> Introduce a new helper function which compares two checksums and then returns
> the appropriate error.
>
> One reason for this is to consolidate and consistify the various strings used
> in the error message (to help translators). Another is to remove (or at least
> reduce) the occurance of the "format not a string literal, argument types not
> checked" warnings generated by the old style of use.
>
> Subsequent commits will update other uses and make the error message generation
> a tad more flexible.
>
> * subversion/libsvn_subr/checksum.c
> (svn_checksum_mismatch_err): New.
>
> * subversion/include/svn_checksum.h
> (svn_checksum_mismatch_err): New.

What do you think about naming it svn_checksum_assert_equal or _equals? That way people probably won't need to wonder what the function does.

Blair
Received on 2011-02-04 18:28:32 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.