summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 532149d)
raw | patch | inline | side by side (parent: 532149d)
author | Junio C Hamano <junkio@cox.net> | |
Thu, 28 Apr 2005 17:13:01 +0000 (10:13 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Thu, 28 Apr 2005 17:13:01 +0000 (10:13 -0700) |
Nobody uses return value from show_new_file() function but it is
defined as returning int and falls off at the end without
returning. Make it void.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
defined as returning int and falls off at the end without
returning. Make it void.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff-cache.c | patch | blob | history |
diff --git a/diff-cache.c b/diff-cache.c
index 6b0b2a9beef589c1d1def854238e8ef7ad2f0f7e..e365f713fa28526f8a883f03a0173755987eadea 100644 (file)
--- a/diff-cache.c
+++ b/diff-cache.c
@@ -38,14 +38,14 @@ static int get_stat_data(struct cache_entry *ce, unsigned char **sha1p, unsigned
return 0;
}
-static int show_new_file(struct cache_entry *new)
+static void show_new_file(struct cache_entry *new)
{
unsigned char *sha1;
unsigned int mode;
/* New file in the index: it might actually be different in the working copy */
if (get_stat_data(new, &sha1, &mode) < 0)
- return -1;
+ return;
show_file("+", new, sha1, mode);
}