strbuf_readlink: use ssize_t
[gitweb.git] / strbuf.c
index 6ff1f80129b98a31f07cbf3ff52b4b9fe485aab0..db9069c937a6d3c05b5ab0243a6b41bfd1f6518e 100644 (file)
--- a/strbuf.c
+++ b/strbuf.c
@@ -469,7 +469,7 @@ int strbuf_readlink(struct strbuf *sb, const char *path, size_t hint)
                hint = 32;
 
        while (hint < STRBUF_MAXLINK) {
-               int len;
+               ssize_t len;
 
                strbuf_grow(sb, hint);
                len = readlink(path, sb->buf, hint);