summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1998-09-09 17:24:31 +0000
committerimp <imp@FreeBSD.org>1998-09-09 17:24:31 +0000
commitb993943913cab1b4593242454b66bd0c624b2b43 (patch)
tree918fd0e4fe8bf50bea7f5ce72123a29ead2aab64 /tools
parent866804ad015d659ca5fb50aa7f285ce0a2f9d467 (diff)
downloadFreeBSD-src-b993943913cab1b4593242454b66bd0c624b2b43.zip
FreeBSD-src-b993943913cab1b4593242454b66bd0c624b2b43.tar.gz
getopt returns -1 not EOF
Diffstat (limited to 'tools')
-rw-r--r--tools/3.0-upgrade/cvt-wtmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/3.0-upgrade/cvt-wtmp.c b/tools/3.0-upgrade/cvt-wtmp.c
index 730fa80..f5d3653 100644
--- a/tools/3.0-upgrade/cvt-wtmp.c
+++ b/tools/3.0-upgrade/cvt-wtmp.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id$
+ * $Id: cvt-wtmp.c,v 1.4 1997/02/22 14:08:01 peter Exp $
*
*/
@@ -82,7 +82,7 @@ main(int argc, char **argv)
int errs, i, nflag, forceflag, rv;
errs = nflag = forceflag = 0;
- while ((i = getopt(argc, argv, "fn")) != EOF)
+ while ((i = getopt(argc, argv, "fn")) != -1)
switch (i)
{
case 'f':
OpenPOWER on IntegriCloud