Fix compilation warnings.

... found by compiling them with gcc 2.95.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2005-08-29 21:17:21 -07:00
parent cf6de18aab
commit 5de36bfec9
2 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ static int get_one_line(const char *msg, unsigned long len)
static int add_user_info(const char *what, enum cmit_fmt fmt, char *buf, const char *line) static int add_user_info(const char *what, enum cmit_fmt fmt, char *buf, const char *line)
{ {
char *date; char *date;
unsigned int namelen; int namelen;
unsigned long time; unsigned long time;
int tz, ret; int tz, ret;

2
diff.c
View File

@ -704,7 +704,7 @@ static int parse_num(const char **cp_p)
scale *= 10; scale *= 10;
num = num * 10 + ch - '0'; num = num * 10 + ch - '0';
} }
*cp++; cp++;
} }
*cp_p = cp; *cp_p = cp;