X-Git-Url: https://cads.iiap.res.in/gitview/?a=blobdiff_plain;f=src%2Fgetopt.c;h=2e76f3428177743b88ab30a8d4c002ad2384e4b2;hb=2ca6f2c81fda4aaafc2f754241b103370241ff05;hp=5f27eb8958818bc1f05846df7c63e2ea0b6178b8;hpb=35c80c346f0b7bc9bf04641d0cb340e9df96b814;p=fits2jpeg.git diff --git a/src/getopt.c b/src/getopt.c index 5f27eb8..2e76f34 100644 --- a/src/getopt.c +++ b/src/getopt.c @@ -109,7 +109,7 @@ int my_getopt(int nargc, char * const *nargv, const char *ostr) (void)fprintf(stderr, "ERROR : option requires an argument -- %c\n", optopt); - return (BADCH); + exit (BADCH); } else /* white space */ optarg = nargv[optindex];