subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bre...@apache.org
Subject svn commit: r1605791 - /subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c
Date Thu, 26 Jun 2014 14:17:29 GMT
Author: breser
Date: Thu Jun 26 14:17:29 2014
New Revision: 1605791

URL: http://svn.apache.org/r1605791
Log:
On svn-auth-x509 branch, remove return of x509parse_dn_gets() function.

* subversion/libsvn_subr/x509parse.c
  (x509parse_dn_gets): Convert to a void return and change to our normal
    style.  We never used the return and it subtracted two longs to
    return an int, losing precision.

Modified:
    subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c

Modified: subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c
URL: http://svn.apache.org/viewvc/subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c?rev=1605791&r1=1605790&r2=1605791&view=diff
==============================================================================
--- subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c (original)
+++ subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c Thu Jun 26 14:17:29
2014
@@ -503,7 +503,8 @@ x509_skip_ext(const unsigned char **p,
  * Store the name in printable form into buf; no more
  * than (end - buf) characters will be written
  */
-static int x509parse_dn_gets(char *buf, const char *end, const x509_name * dn)
+static void
+x509parse_dn_gets(char *buf, const char *end, const x509_name * dn)
 {
   int i;
   unsigned char c;
@@ -578,8 +579,6 @@ static int x509parse_dn_gets(char *buf, 
     p += snprintf(p, end - p, "%s", s);
     name = name->next;
   }
-
-  return (p - buf);
 }
 
 /*



Mime
View raw message