(main): getopt returns -1 not EOF. From <art@stacken.kth.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7379 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -56,7 +56,7 @@ main(int argc, char **argv)
|
||||
autologin = 1;
|
||||
passivemode = 0; /* passive mode not active */
|
||||
|
||||
while ((ch = getopt(argc, argv, "dginptv")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "dginptv")) != -1) {
|
||||
switch (ch) {
|
||||
case 'd':
|
||||
options |= SO_DEBUG;
|
||||
|
Reference in New Issue
Block a user