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

Re: svn commit: r1311469 - in /subversion/trunk/subversion: include/svn_config.h libsvn_subr/config.c

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 10 Apr 2012 10:33:48 +0100

stefan2_at_apache.org writes:

> Author: stefan2
> Date: Mon Apr 9 21:34:21 2012
> New Revision: 1311469
>
> URL: http://svn.apache.org/viewvc?rev=1311469&view=rev
> Log:
> Add special API for reading and writing integer settings
> (similar to what we already have for bools).

> svn_error_t *
> +svn_config_get_int64(svn_config_t *cfg,
> + apr_int64_t *valuep,
> + const char *section,
> + const char *option,
> + apr_int64_t default_value)
> +{
> + const char *tmp_value;
> + svn_config_get(cfg, &tmp_value, section, option, NULL);
> + if (tmp_value)
> + return svn_cstring_strtoui64(valuep, tmp_value,
> + APR_INT64_MIN, APR_INT64_MAX, 10);

svn_cstring_strtoi64?

svn_config_get_uint46?

../src/subversion/libsvn_subr/config.c: In function ‘svn_config_get_int64’:
../src/subversion/libsvn_subr/config.c:711: warning: pointer targets in passing argument 1 of ‘svn_cstring_strtoui64’ differ in signedness
../src/subversion/include/svn_string.h:482: note: expected ‘apr_uint64_t *’ but argument is of type ‘apr_int64_t *’

> +
> + *valuep = default_value;
> + return SVN_NO_ERROR;
> +}

-- 
Philip
Received on 2012-04-10 11:34:29 CEST

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.