(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:
@@ -161,7 +161,7 @@ main(int argc, char **argv)
|
|||||||
autologin = -1;
|
autologin = -1;
|
||||||
|
|
||||||
while((ch = getopt(argc, argv,
|
while((ch = getopt(argc, argv,
|
||||||
"78DEKLS:X:abcde:fFk:l:n:rxG")) != EOF) {
|
"78DEKLS:X:abcde:fFk:l:n:rxG")) != -1) {
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
case '8':
|
case '8':
|
||||||
eight = 3; /* binary output and input */
|
eight = 3; /* binary output and input */
|
||||||
|
@@ -169,7 +169,7 @@ main(int argc, char **argv)
|
|||||||
highpty = getnpty();
|
highpty = getnpty();
|
||||||
#endif /* CRAY */
|
#endif /* CRAY */
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, valid_opts)) != EOF) {
|
while ((ch = getopt(argc, argv, valid_opts)) != -1) {
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
|
|
||||||
#ifdef AUTHENTICATION
|
#ifdef AUTHENTICATION
|
||||||
|
Reference in New Issue
Block a user