From 2825b4025ad077915cf4a560e5d14b77621f7c6d Mon Sep 17 00:00:00 2001 From: jwise Date: Mon, 1 Jan 2001 22:05:04 +0000 Subject: [PATCH] Fix getopt() usage. --- sail/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sail/main.c b/sail/main.c index 63830153..587a0228 100644 --- a/sail/main.c +++ b/sail/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.14 2001/01/01 21:57:38 jwise Exp $ */ +/* $NetBSD: main.c,v 1.15 2001/01/01 22:05:04 jwise Exp $ */ /* * Copyright (c) 1983, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\ #if 0 static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: main.c,v 1.14 2001/01/01 21:57:38 jwise Exp $"); +__RCSID("$NetBSD: main.c,v 1.15 2001/01/01 22:05:04 jwise Exp $"); #endif #endif /* not lint */ @@ -83,7 +83,7 @@ main(int argc, char **argv) else mode = MODE_PLAYER; - while ((a = getopt(argc, argv, "dsDxlb"))) + while ((a = getopt(argc, argv, "dsDxlb")) != -1) switch (a) { case 'd': mode = MODE_DRIVER; -- 2.47.1