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) {
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to