Document git commit --untracked-files and --verbose
[gitweb.git] / builtin-fetch--tool.c
index b14e78ac3ffc95c99c2334fab5792f6c49a6c93d..ed4d5de5d5e6d0bef5b29f3d21a3e58ff7778c8b 100644 (file)
@@ -6,11 +6,11 @@
 
 static char *get_stdin(void)
 {
-       int offset = 0;
+       size_t offset = 0;
        char *data = xmalloc(CHUNK_SIZE);
 
        while (1) {
-               int cnt = xread(0, data + offset, CHUNK_SIZE);
+               ssize_t cnt = xread(0, data + offset, CHUNK_SIZE);
                if (cnt < 0)
                        die("error reading standard input: %s",
                            strerror(errno));