svn commit: r230478 - head/lib/libfetch
Dag-Erling Smorgrav
des at FreeBSD.org
Mon Jan 23 09:23:08 UTC 2012
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 at .
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) {
More information about the svn-src-all
mailing list