From 9becdf91865eee5f770d1f086c359e1724453c2d Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 13 Nov 1999 06:18:02 +0000 Subject: [PATCH] (main): getopt returns -1 not EOF. From git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7379 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appl/ftp/ftp/main.c b/appl/ftp/ftp/main.c index 6c5707079..5406aab06 100644 --- a/appl/ftp/ftp/main.c +++ b/appl/ftp/ftp/main.c @@ -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;