X-Git-Url: https://cads.iiap.res.in/gitview/?p=fits2jpeg.git;a=blobdiff_plain;f=src%2Fgetopt.c;fp=src%2Fgetopt.c;h=2e76f3428177743b88ab30a8d4c002ad2384e4b2;hp=5f27eb8958818bc1f05846df7c63e2ea0b6178b8;hb=ca5520b0c818f4ad57e2e57d557fc999f9dfe3c7;hpb=43cf6bddbf02b21c68b405e267605b1b64cddd8d 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];