Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
Fixed exit code of geoiplookup -h.
Browse files Browse the repository at this point in the history
geoiplookup -h should print help and it (usually) succeeds, there is no need
to return nozero exit code.
  • Loading branch information
jsafrane authored and oschwald committed May 14, 2013
1 parent 80b22d2 commit b4bf5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/geoiplookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int main (int argc, char *argv[]) {
} else if (( strcmp(argv[i], "-?" ) == 0 )
|| ( strcmp(argv[i], "-h" ) == 0 )) {
usage();
exit(1);
exit(0);
} else if (strcmp(argv[i],"-f") == 0) {
if ((i+1) < argc){
i++;
Expand Down

0 comments on commit b4bf5fa

Please sign in to comment.