read_gitfile_gently: use ssize_t to hold read result
[gitweb.git] / setup.c
diff --git a/setup.c b/setup.c
index dadc66659a4037b614b215b7f812c4df8969562b..a975c8b103e7791f3731c9fc451c682ce460e8c8 100644 (file)
--- a/setup.c
+++ b/setup.c
@@ -272,7 +272,7 @@ const char *read_gitfile_gently(const char *path)
        const char *slash;
        struct stat st;
        int fd;
-       size_t len;
+       ssize_t len;
 
        if (stat(path, &st))
                return NULL;