fix field width/precision warnings in blame.c
authorLuck, Tony <tony.luck@intel.com>
Tue, 21 Mar 2006 23:28:06 +0000 (15:28 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 21 Mar 2006 23:39:44 +0000 (15:39 -0800)
Using "size_t" values for printf field width/precision upsets gcc, it
wants to see an "int".

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
blame.c

diff --git a/blame.c b/blame.c
index 9c97aec..7e88833 100644 (file)
--- a/blame.c
+++ b/blame.c
@@ -748,7 +748,7 @@ int main(int argc, const char **argv)
        struct commit_info ci;
        const char *buf;
        int max_digits;
-       size_t longest_file, longest_author;
+       int longest_file, longest_author;
        int found_rename;
 
        const char* prefix = setup_git_directory();