Commit a4f863af4d0055126435eb01278940aaf727d2b3

Ramsay Jones 2010-01-03T19:37:04

Fix an always false comparison "unsigned < 0" warning Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/odb.c b/src/odb.c
index 6d646a4..eb9264e 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -503,7 +503,7 @@ static int make_temp_file(git_file *fd, char *tmp, size_t n, char *file)
 {
 	char *template = "/tmp_obj_XXXXXX";
 	size_t tmplen = strlen(template);
-	size_t dirlen;
+	int dirlen;
 
 	if ((dirlen = git__dirname(tmp, n, file)) < 0)
 		return GIT_ERROR;