X-Git-Url: https://git.cameronkatri.com/pw-darwin.git/blobdiff_plain/73ca041dfcdee40aae69e5de3412a1148126ec4e..908a8140bcf46c17b5136443b301f75adfd1c4b6:/chpass/chpass.c?ds=sidebyside diff --git a/chpass/chpass.c b/chpass/chpass.c index 2c5e79d..982548f 100644 --- a/chpass/chpass.c +++ b/chpass/chpass.c @@ -40,7 +40,7 @@ static char copyright[] = #ifndef lint static char sccsid[] = "From: @(#)chpass.c 8.4 (Berkeley) 4/2/94"; static char rcsid[] = - "$Id: chpass.c,v 1.10 1996/07/14 16:42:33 guido Exp $"; + "$Id: chpass.c,v 1.13 1997/02/22 19:54:25 peter Exp $"; #endif /* not lint */ #include @@ -94,9 +94,9 @@ main(argc, argv) op = EDITENTRY; #ifdef YP - while ((ch = getopt(argc, argv, "a:p:s:e:d:h:oly")) != EOF) + while ((ch = getopt(argc, argv, "a:p:s:e:d:h:oly")) != -1) #else - while ((ch = getopt(argc, argv, "a:p:s:e:")) != EOF) + while ((ch = getopt(argc, argv, "a:p:s:e:")) != -1) #endif switch(ch) { case 'a':