Code

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 9c97aeca451f641ff319fc4bee70a97488e619cd..7e88833a37f9a2b7380b96510a331cf376c99264 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();