summaryrefslogtreecommitdiff
path: root/name-rev.c
diff options
context:
space:
mode:
authorLibravatar Timo Hirvonen <tihirvon@gmail.com>2005-11-21 02:52:52 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2005-11-20 22:14:16 -0800
commitbd22c904a0f1c88a3a7bfa96bbf690de2f5cb278 (patch)
treedd1fe80dd0120cfcb2f551d6a4bf88bebe29ce8b /name-rev.c
parentMerge http://www.kernel.org/pub/scm/gitk/gitk (diff)
downloadtgif-bd22c904a0f1c88a3a7bfa96bbf690de2f5cb278.tar.xz
Fix sparse warnings
Make some functions static and convert func() function prototypes to to func(void). Fix declaration after statement, missing declaration and redundant declaration warnings. Signed-off-by: Timo Hirvonen <tihirvon@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'name-rev.c')
-rw-r--r--name-rev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/name-rev.c b/name-rev.c
index 59194f1349..817e36b793 100644
--- a/name-rev.c
+++ b/name-rev.c
@@ -230,8 +230,6 @@ int main(int argc, char **argv)
fwrite(p_start, p - p_start, 1, stdout);
}
} else if (all) {
- extern struct object **objs;
- extern int nr_objs;
int i;
for (i = 0; i < nr_objs; i++)