(main): getopt returns -1 not EOF. From <art@stacken.kth.se>

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7380 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-11-13 06:31:04 +00:00
parent 9becdf9186
commit 825e2aa265
2 changed files with 2 additions and 2 deletions

View File

@@ -161,7 +161,7 @@ main(int argc, char **argv)
autologin = -1;
while((ch = getopt(argc, argv,
"78DEKLS:X:abcde:fFk:l:n:rxG")) != EOF) {
"78DEKLS:X:abcde:fFk:l:n:rxG")) != -1) {
switch(ch) {
case '8':
eight = 3; /* binary output and input */

View File

@@ -169,7 +169,7 @@ main(int argc, char **argv)
highpty = getnpty();
#endif /* CRAY */
while ((ch = getopt(argc, argv, valid_opts)) != EOF) {
while ((ch = getopt(argc, argv, valid_opts)) != -1) {
switch(ch) {
#ifdef AUTHENTICATION