Code

user-manual: update for new default --track behavior
[git.git] / builtin-bundle.c
index d1635a0a6b009ecb6706084828abd0e3928f2b8d..6ae5ab04c95ab99538bbcf9ef2f5031e7237df3a 100644 (file)
@@ -1,3 +1,4 @@
+#include "builtin.h"
 #include "cache.h"
 #include "object.h"
 #include "commit.h"
@@ -48,7 +49,7 @@ static int read_string(int fd, char *buffer, int size)
 {
        int i;
        for (i = 0; i < size - 1; i++) {
-               int count = xread(fd, buffer + i, 1);
+               ssize_t count = xread(fd, buffer + i, 1);
                if (count < 0)
                        return error("Read error: %s", strerror(errno));
                if (count == 0) {