Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/lpr/pac Finish transition to using getopt(3). Fixes...
details: https://anonhg.NetBSD.org/src/rev/48ea0f25717f
branches: trunk
changeset: 485408:48ea0f25717f
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Thu Apr 27 09:43:38 2000 +0000
description:
Finish transition to using getopt(3). Fixes bin/9963 by Brian Stark.
diffstat:
usr.sbin/lpr/pac/pac.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r bd8d65a09e8d -r 48ea0f25717f usr.sbin/lpr/pac/pac.c
--- a/usr.sbin/lpr/pac/pac.c Thu Apr 27 08:56:42 2000 +0000
+++ b/usr.sbin/lpr/pac/pac.c Thu Apr 27 09:43:38 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pac.c,v 1.12 1999/12/05 22:22:05 jdolecek Exp $ */
+/* $NetBSD: pac.c,v 1.13 2000/04/27 09:43:38 jdolecek Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)pac.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: pac.c,v 1.12 1999/12/05 22:22:05 jdolecek Exp $");
+__RCSID("$NetBSD: pac.c,v 1.13 2000/04/27 09:43:38 jdolecek Exp $");
#endif
#endif /* not lint */
@@ -121,14 +121,14 @@
/*
* Printer name.
*/
- printer = cp;
+ printer = optarg;
continue;
case 'p':
/*
* get the price.
*/
- price = atof(cp);
+ price = atof(optarg);
pflag = 1;
continue;
Home |
Main Index |
Thread Index |
Old Index