Remove some Makefile cruft and improve an error message.

This commit is contained in:
augustss 1998-07-12 20:40:44 +00:00
parent 81565845ef
commit 3ac7469e03
3 changed files with 7 additions and 7 deletions

View File

@ -1,9 +1,7 @@
# $NetBSD: Makefile,v 1.1 1998/07/12 19:52:02 augustss Exp $
# $NetBSD: Makefile,v 1.2 1998/07/12 20:40:44 augustss Exp $
PROG= usbd
MAN= usbd.8
CFLAGS += -I../../sys
.include <bsd.prog.mk>
.include <bsd.subdir.mk>

View File

@ -1,9 +1,7 @@
# $NetBSD: Makefile,v 1.1 1998/07/12 19:52:02 augustss Exp $
# $NetBSD: Makefile,v 1.2 1998/07/12 20:40:45 augustss Exp $
PROG= usbdevs
MAN= usbdevs.8
CFLAGS += -I../../sys
.include <bsd.prog.mk>
.include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
/* $NetBSD: usbdevs.c,v 1.2 1998/07/12 20:32:30 augustss Exp $ */
/* $NetBSD: usbdevs.c,v 1.3 1998/07/12 20:40:45 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -42,6 +42,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <err.h>
#include <errno.h>
#include <dev/usb/usb.h>
#define USBDEV "/dev/usb"
@ -188,6 +189,9 @@ main(argc, argv)
if (f >= 0) {
dumpone(buf, f, addr);
close(f);
} else {
if (errno == EACCES)
warn("%s", buf);
}
}
} else {