summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2012-01-23 09:23:07 +0000
committerdes <des@FreeBSD.org>2012-01-23 09:23:07 +0000
commit4b95b05db487c202cab30b4e038956521a32ae72 (patch)
tree2fa23e6d751bff77620d3cdbb5fd156cd0c6d01f /lib
parent9feb719605e703444f28b933c01a8a42ed35a2b0 (diff)
downloadFreeBSD-src-4b95b05db487c202cab30b4e038956521a32ae72.zip
FreeBSD-src-4b95b05db487c202cab30b4e038956521a32ae72.tar.gz
Fix two nits in previous commit pointed out by pjd@.
MFC after: 3 weeks
Diffstat (limited to 'lib')
-rw-r--r--lib/libfetch/common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c
index 5dfdcc4..e6f67c3 100644
--- a/lib/libfetch/common.c
+++ b/lib/libfetch/common.c
@@ -416,7 +416,6 @@ fetch_cache_data(conn_t *conn, char *src, size_t nbytes)
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_t len)
conn->cache.len -= total;
conn->cache.pos += total;
len -= total;
- buf+= total;
+ buf += total;
}
while (len > 0) {
OpenPOWER on IntegriCloud