Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2012 09:23:07 +0000 (UTC)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230478 - head/lib/libfetch
Message-ID:  <201201230923.q0N9N8A5016432@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: des
Date: Mon Jan 23 09:23:07 2012
New Revision: 230478
URL: http://svn.freebsd.org/changeset/base/230478

Log:
  Fix two nits in previous commit pointed out by pjd@.
  
  MFC after:	3 weeks

Modified:
  head/lib/libfetch/common.c

Modified: head/lib/libfetch/common.c
==============================================================================
--- head/lib/libfetch/common.c	Mon Jan 23 08:30:17 2012	(r230477)
+++ head/lib/libfetch/common.c	Mon Jan 23 09:23:07 2012	(r230478)
@@ -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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201230923.q0N9N8A5016432>