diff options
Diffstat (limited to 'usr.sbin/lptcontrol')
-rw-r--r-- | usr.sbin/lptcontrol/Makefile | 2 | ||||
-rw-r--r-- | usr.sbin/lptcontrol/lptcontrol.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/lptcontrol/Makefile b/usr.sbin/lptcontrol/Makefile index 110066d..76c40e7 100644 --- a/usr.sbin/lptcontrol/Makefile +++ b/usr.sbin/lptcontrol/Makefile @@ -1,5 +1,5 @@ PROG= lptcontrol -CFLAGS+= -Wall +CFLAGS+= -Wall MAN8= lptcontrol.8 .include <bsd.prog.mk> diff --git a/usr.sbin/lptcontrol/lptcontrol.c b/usr.sbin/lptcontrol/lptcontrol.c index cbe0410..f297b33 100644 --- a/usr.sbin/lptcontrol/lptcontrol.c +++ b/usr.sbin/lptcontrol/lptcontrol.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: lptcontrol.c,v 1.1.1.1 1994/09/03 13:10:09 csgr Exp $ + * $Id: lptcontrol.c,v 1.2 1994/09/03 22:46:50 csgr Exp $ */ #include <ctype.h> @@ -91,18 +91,18 @@ int main (int argc, char * argv[]) int opt; int irq_status = IRQ_INVALID; char * unit = DEFAULT_UNIT; - + while((opt = getopt(argc, argv, "ipu:")) != -1) switch(opt) { case 'i': irq_status = USE_IRQ; break; case 'p': irq_status = DO_POLL; break; - case 'u': unit = optarg; + case 'u': unit = optarg; if(!isdigit(*unit)) usage(argv[0]); break; - default : usage(argv[0]); + default : usage(argv[0]); } - if(irq_status == IRQ_INVALID) + if(irq_status == IRQ_INVALID) usage(argv[0]); set_interrupt_status(irq_status, dev_file(*unit)); |