From 5d08734a5b3d621dfd1d78fa4e113f91bde28818 Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Sun, 23 May 1999 17:19:25 +0000 Subject: getopt(3) returns -1, not EOF --- usr.sbin/ssio/use_adf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ssio/use_adf.c') diff --git a/usr.sbin/ssio/use_adf.c b/usr.sbin/ssio/use_adf.c index d95f6d1c430..fa94b41c42d 100644 --- a/usr.sbin/ssio/use_adf.c +++ b/usr.sbin/ssio/use_adf.c @@ -1,4 +1,4 @@ -static char *rcs_id = "$Id: use_adf.c,v 1.2 1997/08/30 07:55:17 matthieu Exp $"; +static char *rcs_id = "$Id: use_adf.c,v 1.3 1999/05/23 17:19:23 aaron Exp $"; /* * Copyright (c) 1995 Kenneth Stailey * All rights reserved. @@ -66,7 +66,7 @@ main(int argc, char *argv[]) extern int errno; - while ((c = getopt(argc, argv, "l:")) != EOF) { + while ((c = getopt(argc, argv, "l:")) != -1) { switch (c) { case 'l': logical_name = optarg; -- cgit v1.2.3