Fix two nits in previous commit pointed out by pjd@.

MFC after:	3 weeks
This commit is contained in:
Dag-Erling Smørgrav 2012-01-23 09:23:07 +00:00
parent 2ee7b1d4ae
commit e6e3bcd376
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230478

View File

@ -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) {