getopt(3) fix that I missed in the previous sweep.
authormillert <millert@openbsd.org>
Thu, 16 Jan 1997 05:27:46 +0000 (05:27 +0000)
committermillert <millert@openbsd.org>
Thu, 16 Jan 1997 05:27:46 +0000 (05:27 +0000)
usr.sbin/sendmail/src/main.c

index df276d4..e420bbd 100644 (file)
@@ -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)
                {