diff options
Diffstat (limited to 'usr.sbin/lptcontrol/lptcontrol.c')
-rw-r--r-- | usr.sbin/lptcontrol/lptcontrol.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.sbin/lptcontrol/lptcontrol.c b/usr.sbin/lptcontrol/lptcontrol.c index afd234ee5ba67..73ea05cf459f5 100644 --- a/usr.sbin/lptcontrol/lptcontrol.c +++ b/usr.sbin/lptcontrol/lptcontrol.c @@ -30,7 +30,7 @@ #ifndef lint static const char rcsid[] = - "$Id: lptcontrol.c,v 1.6 1997/09/25 06:36:29 charnier Exp $"; + "$Id$"; #endif /* not lint */ #include <ctype.h> @@ -53,12 +53,10 @@ static const char rcsid[] = #define IRQ_INVALID -1 #define DO_POLL 0 #define USE_IRQ 1 -#define USE_EXT_MODE 2 -#define USE_STD_MODE 3 static void usage() { - fprintf(stderr, "usage: lptcontrol -i | -p | -s | -e [-u <unit no.>]\n"); + fprintf(stderr, "usage: lptcontrol -i | -p [-u <unit no.>]\n"); exit(1); } @@ -91,12 +89,10 @@ int main (int argc, char * argv[]) int irq_status = IRQ_INVALID; char * unit = DEFAULT_UNIT; - while((opt = getopt(argc, argv, "ipesu:")) != -1) + while((opt = getopt(argc, argv, "ipu:")) != -1) switch(opt) { case 'i': irq_status = USE_IRQ; break; case 'p': irq_status = DO_POLL; break; - case 'e': irq_status = USE_EXT_MODE; break; - case 's': irq_status = USE_STD_MODE; break; case 'u': unit = optarg; if(!isdigit(*unit)) usage(); |