subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1501961 - /subversion/trunk/subversion/libsvn_subr/ssl_server_trust_providers.c
Date Wed, 10 Jul 2013 20:20:50 GMT
Author: stsp
Date: Wed Jul 10 20:20:49 2013
New Revision: 1501961

URL: http://svn.apache.org/r1501961
Log:
* subversion/libsvn_subr/ssl_server_trust_providers.c
  (ssl_server_trust_file_first_credentials): Use svn_cstring_atoui() instead
   of strtoul(). No functional change apart from error cases.

Modified:
    subversion/trunk/subversion/libsvn_subr/ssl_server_trust_providers.c

Modified: subversion/trunk/subversion/libsvn_subr/ssl_server_trust_providers.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/ssl_server_trust_providers.c?rev=1501961&r1=1501960&r2=1501961&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/ssl_server_trust_providers.c (original)
+++ subversion/trunk/subversion/libsvn_subr/ssl_server_trust_providers.c Wed Jul 10 20:20:49
2013
@@ -78,13 +78,7 @@ ssl_server_trust_file_first_credentials(
       failstr = svn_hash_gets(creds_hash, AUTHN_FAILURES_KEY);
 
       if (failstr)
-        {
-          char *endptr;
-          unsigned long tmp_ulong = strtoul(failstr->data, &endptr, 10);
-
-          if (*endptr == '\0')
-            last_failures = (apr_uint32_t) tmp_ulong;
-        }
+        SVN_ERR(svn_cstring_atoui(&last_failures, failstr->data));
 
       /* If the cert is trusted and there are no new failures, we
        * accept it by clearing all failures. */



Mime
View raw message