diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-26 18:50:55 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-26 18:50:55 -0800 |
| commit | 08c6debe78830c203c3e94ba26eed773aa810b8d (patch) | |
| tree | 2b7bb0184f994af579f2f010e94f86babb1112eb | |
| parent | 453374f5ddaf42e1eee7dcf19bbe03207c42320e (diff) | |
Replaced returns with exit()s in main
| -rw-r--r-- | bp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -453,7 +453,7 @@ int main(int argc, char *argv[]) break; } else if (BOOLFLAG("-h") || BOOLFLAG("--help")) { printf("%s\n", usage); - return EXIT_SUCCESS; + exit(EXIT_SUCCESS); } else if (BOOLFLAG("-v") || BOOLFLAG("--verbose")) { verbose = true; } else if (BOOLFLAG("-e") || BOOLFLAG("--explain")) { @@ -675,7 +675,7 @@ int main(int argc, char *argv[]) free_all_matches(); #endif - return (found > 0) ? EXIT_SUCCESS : EXIT_FAILURE; + exit(found > 0 ? EXIT_SUCCESS : EXIT_FAILURE); } // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 |
