svn commit: r236104 - stable/9/lib/libfetch

Dag-Erling Smorgrav des at FreeBSD.org
Sat May 26 16:37:43 UTC 2012


Author: des
Date: Sat May 26 16:37:43 2012
New Revision: 236104
URL: http://svn.freebsd.org/changeset/base/236104

Log:
  MFH r230478: fix nits in already-merged r230307.

Modified:
  stable/9/lib/libfetch/common.c
Directory Properties:
  stable/9/lib/libfetch/   (props changed)

Modified: stable/9/lib/libfetch/common.c
==============================================================================
--- stable/9/lib/libfetch/common.c	Sat May 26 16:34:39 2012	(r236103)
+++ stable/9/lib/libfetch/common.c	Sat May 26 16:37:43 2012	(r236104)
@@ -416,7 +416,6 @@ fetch_cache_data(conn_t *conn, char *src
 	if (conn->cache.size < nbytes) {
 		tmp = realloc(conn->cache.buf, nbytes);
 		if (tmp == NULL) {
-			errno = ENOMEM;
 			fetch_syserr();
 			return (-1);
 		}
@@ -481,7 +480,7 @@ fetch_read(conn_t *conn, char *buf, size
 		conn->cache.len -= total;
 		conn->cache.pos += total;
 		len -= total;
-		buf+= total;
+		buf += total;
 	}
 
 	while (len > 0) {


More information about the svn-src-stable mailing list