summaryrefslogtreecommitdiffstats
path: root/libexec/getNAME
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-03-28 15:48:21 +0000
committerimp <imp@FreeBSD.org>1997-03-28 15:48:21 +0000
commit3125d931c2865b48cb5780a22e277701803212c6 (patch)
tree5fe9e887ce5fdacb7324ecf172d3dc7bbd561532 /libexec/getNAME
parent054f35c2222ef251bc2877814cf7bf5ff6038166 (diff)
downloadFreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.zip
FreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.tar.gz
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'libexec/getNAME')
-rw-r--r--libexec/getNAME/getNAME.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/getNAME/getNAME.c b/libexec/getNAME/getNAME.c
index f7f29bc..2961ecf 100644
--- a/libexec/getNAME/getNAME.c
+++ b/libexec/getNAME/getNAME.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: getNAME.c,v 1.4 1997/02/22 14:21:35 peter Exp $
*
*/
@@ -73,7 +73,7 @@ main(argc, argv)
extern int optind;
int ch;
- while ((ch = getopt(argc, argv, "itw")) != EOF)
+ while ((ch = getopt(argc, argv, "itw")) != -1)
switch(ch) {
case 'i':
intro = 1;
OpenPOWER on IntegriCloud