From: millert Date: Thu, 16 Jan 1997 05:27:46 +0000 (+0000) Subject: getopt(3) fix that I missed in the previous sweep. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f876270c4074d74973925be99cc3f0bf21e72bf2;p=openbsd getopt(3) fix that I missed in the previous sweep. --- diff --git a/usr.sbin/sendmail/src/main.c b/usr.sbin/sendmail/src/main.c index df276d46f1b..e420bbde23d 100644 --- a/usr.sbin/sendmail/src/main.c +++ b/usr.sbin/sendmail/src/main.c @@ -515,7 +515,7 @@ main(argc, argv, envp) OpMode = MD_PURGESTAT; optind = 1; - while ((j = getopt(argc, argv, OPTIONS)) != EOF) + while ((j = getopt(argc, argv, OPTIONS)) != -1) { switch (j) {