Code

Fix compilation warnings.
authorJunio C Hamano <junkio@cox.net>
Tue, 30 Aug 2005 04:17:21 +0000 (21:17 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 30 Aug 2005 04:17:21 +0000 (21:17 -0700)
... found by compiling them with gcc 2.95.

Signed-off-by: Junio C Hamano <junkio@cox.net>
commit.c
diff.c

index e51eda15243614d83948f31ee3814120ad61b1fe..2f73cf3d9085a620bedd32e818942a11febab44f 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -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)
 {
        char *date;
-       unsigned int namelen;
+       int namelen;
        unsigned long time;
        int tz, ret;
 
diff --git a/diff.c b/diff.c
index 9015c81d76b4038bf5cc567aa2e055370b6ffee8..527cbf04adf86fe6fc4c449971ac177d63736330 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -704,7 +704,7 @@ static int parse_num(const char **cp_p)
                        scale *= 10;
                        num = num * 10 + ch - '0';
                }
-               *cp++;
+               cp++;
        }
        *cp_p = cp;