Fix two nits in previous commit pointed out by pjd@.
MFC after: 3 weeks
This commit is contained in:
parent
2ee7b1d4ae
commit
e6e3bcd376
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230478
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user