Skip to content

Commit

Permalink
git-verify-pack: no need to count errors
Browse files Browse the repository at this point in the history
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Rene Scharfe authored and Junio C Hamano committed Aug 10, 2006
1 parent f711ab5 commit 0eaf22f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions verify-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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++;
Expand All @@ -74,5 +74,5 @@ int main(int ac, char **av)
if (nothing_done)
usage(verify_pack_usage);

return !!errs;
return err;
}

0 comments on commit 0eaf22f

Please sign in to comment.