@matheusbsbs / matheus-bagliano / commits / 0eaf22f4c4
Fork 0

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>

Rene Scharfe committed Aug 10, 2006 at 17:02 UTC 0eaf22f4c4bba89457e733264e71343368712793
1 file changed +3 -3
verify-pack.c
+3 -3
@@ -49,7 +49,7 @@ static const char verify_pack_usage[] = "git-verify-pack [-v] <pack>...";
49
50 int main(int ac, char **av)
51 {
52 - int errs = 0;
52 + int err = 0;
53 int verbose = 0;
54 int no_more_options = 0;
55 int nothing_done = 1;
@@ -65,7 +65,7 @@ int main(int ac, char **av)
65 }
66 else {
67 if (verify_one_pack(av[1], verbose))
68 - errs++;
68 + err = 1;
69 nothing_done = 0;
70 }
71 ac--; av++;
@@ -74,5 +74,5 @@ int main(int ac, char **av)
74 if (nothing_done)
75 usage(verify_pack_usage);
76
77 - return !!errs;
77 + return err;
78 }