subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1390555 - in /subversion/trunk/subversion: libsvn_ra_svn/marshal.c libsvn_subr/pseudo_md5.c
Date Wed, 26 Sep 2012 15:18:50 GMT
Author: stefan2
Date: Wed Sep 26 15:18:50 2012
New Revision: 1390555

URL: http://svn.apache.org/viewvc?rev=1390555&view=rev
Log:
Fix compiler warnings.

* subversion/libsvn_ra_svn/marshal.c
  (readbuf_skip): fix signedness mismatch warning
* subversion/libsvn_subr/pseudo_md5.c
  #include the correct header file

Modified:
    subversion/trunk/subversion/libsvn_ra_svn/marshal.c
    subversion/trunk/subversion/libsvn_subr/pseudo_md5.c

Modified: subversion/trunk/subversion/libsvn_ra_svn/marshal.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_svn/marshal.c?rev=1390555&r1=1390554&r2=1390555&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_svn/marshal.c (original)
+++ subversion/trunk/subversion/libsvn_ra_svn/marshal.c Wed Sep 26 15:18:50 2012
@@ -334,12 +334,10 @@ static svn_error_t *readbuf_input(svn_ra
 /* Treat the next LEN input bytes from CONN as "read" */
 static svn_error_t *readbuf_skip(svn_ra_svn_conn_t *conn, apr_size_t len)
 {
-  apr_ssize_t buflen, copylen;
-
   do
   {
-    buflen = conn->read_end - conn->read_ptr;
-    copylen = (buflen < len) ? buflen : len;
+    apr_size_t buflen = conn->read_end - conn->read_ptr;
+    apr_size_t copylen = (buflen < len) ? buflen : len;
     conn->read_ptr += copylen;
     len -= copylen;
     if (len == 0)

Modified: subversion/trunk/subversion/libsvn_subr/pseudo_md5.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/pseudo_md5.c?rev=1390555&r1=1390554&r2=1390555&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/pseudo_md5.c (original)
+++ subversion/trunk/subversion/libsvn_subr/pseudo_md5.c Wed Sep 26 15:18:50 2012
@@ -62,7 +62,7 @@
  * pseudo_md5.c:  md5-esque hash sum calculation for short data blocks.
  *                Code taken and adapted from the APR (see licenses above).
  */
-#include "svn_checksum.h"
+#include "private/svn_pseudo_md5.h"
 
 /* Constants for MD5 calculation.
  */



Mime
View raw message