summaryrefslogtreecommitdiff
path: root/verify-pack.c
diff options
context:
space:
mode:
authorLibravatar Rene Scharfe <rene.scharfe@lsrfire.ath.cx>2006-08-10 17:02:37 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-08-10 14:16:02 -0700
commit0eaf22f4c4bba89457e733264e71343368712793 (patch)
treeff8176e73dca8e2fe0a37fa81c493694012d392e /verify-pack.c
parentgit-verify-pack: buffer overrun paranoia (diff)
downloadtgif-0eaf22f4c4bba89457e733264e71343368712793.tar.xz
git-verify-pack: no need to count errors
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'verify-pack.c')
-rw-r--r--verify-pack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/verify-pack.c b/verify-pack.c
index 99c352ee3a..f440a39678 100644
--- a/verify-pack.c
+++ b/verify-pack.c
@@ -49,7 +49,7 @@ static const char verify_pack_usage[] = "git-verify-pack [-v] <pack>...";
int main(int ac, char **av)
{
- int errs = 0;
+ int err = 0;
int verbose = 0;
int no_more_options = 0;
int nothing_done = 1;
@@ -65,7 +65,7 @@ int main(int ac, char **av)
}
else {
if (verify_one_pack(av[1], verbose))
- errs++;
+ err = 1;
nothing_done = 0;
}
ac--; av++;
@@ -74,5 +74,5 @@ int main(int ac, char **av)
if (nothing_done)
usage(verify_pack_usage);
- return !!errs;
+ return err;
}