Fix compilation warnings. ... found by compiling them with gcc 2.95. Signed-off-by: Junio C Hamano <junkio@cox.net>
diff --git a/commit.c b/commit.c index e51eda1..2f73cf3 100644 --- a/commit.c +++ b/commit.c
@@ -357,7 +357,7 @@ static int add_user_info(const char *what, enum cmit_fmt fmt, char *buf, const char *line) { char *date; - unsigned int namelen; + int namelen; unsigned long time; int tz, ret;
diff --git a/diff.c b/diff.c index 9015c81..527cbf0 100644 --- a/diff.c +++ b/diff.c
@@ -704,7 +704,7 @@ scale *= 10; num = num * 10 + ch - '0'; } - *cp++; + cp++; } *cp_p = cp;