Fix getopt() usage.
This commit is contained in:
parent
dfea9f08db
commit
e6d2cd0771
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user