Fix some "signed/unsigned mismatch" (msvc) compiler warnings

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Andreas Ericsson <ae@op5.se>
This commit is contained in:
Ramsay Jones 2009-06-04 17:14:35 +01:00 committed by Andreas Ericsson
parent 4c9a397329
commit 10aa3fa72a
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ int git__suffixcmp(const char *str, const char *suffix)
int git__dirname(char *dir, size_t n, char *path)
{
char *s;
int len;
size_t len;
assert(dir && n > 1);
@ -89,7 +89,7 @@ int git__dirname(char *dir, size_t n, char *path)
int git__basename(char *base, size_t n, char *path)
{
char *s;
int len;
size_t len;
assert(base && n > 1);

View File

@ -2,7 +2,7 @@
static int init_filter(char *filter, size_t n, const char *dir)
{
int len = strlen(dir);
size_t len = strlen(dir);
if (len+3 >= n)
return 0;