summaryrefslogtreecommitdiffstats
path: root/usr.bin/paste
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-01-15 23:40:20 +0000
committermillert <millert@openbsd.org>1997-01-15 23:40:20 +0000
commit72799b18e5d7fe7a63e4137ee58a606d3817781d (patch)
tree698a9ab6fd99eb5b6c651ec199bb17cca9178980 /usr.bin/paste
parentsync with NetBSD 970112 -moj (diff)
downloadwireguard-openbsd-72799b18e5d7fe7a63e4137ee58a606d3817781d.tar.xz
wireguard-openbsd-72799b18e5d7fe7a63e4137ee58a606d3817781d.zip
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'usr.bin/paste')
-rw-r--r--usr.bin/paste/paste.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/paste/paste.c b/usr.bin/paste/paste.c
index cc5fce44c0f..514227f4d4a 100644
--- a/usr.bin/paste/paste.c
+++ b/usr.bin/paste/paste.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: paste.c,v 1.2 1996/06/26 05:37:50 deraadt Exp $ */
+/* $OpenBSD: paste.c,v 1.3 1997/01/15 23:43:02 millert Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -44,7 +44,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)paste.c 5.7 (Berkeley) 10/30/90";*/
-static char rcsid[] = "$OpenBSD: paste.c,v 1.2 1996/06/26 05:37:50 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: paste.c,v 1.3 1997/01/15 23:43:02 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -65,7 +65,7 @@ main(argc, argv)
int ch, seq;
seq = 0;
- while ((ch = getopt(argc, argv, "d:s")) != EOF)
+ while ((ch = getopt(argc, argv, "d:s")) != -1)
switch(ch) {
case 'd':
delimcnt = tr(delim = optarg);