summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pccard/pccardc/pccardmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pccard/pccardc/pccardmem.c')
-rw-r--r--usr.sbin/pccard/pccardc/pccardmem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pccard/pccardc/pccardmem.c b/usr.sbin/pccard/pccardc/pccardmem.c
index 8461e0e..240cdd6 100644
--- a/usr.sbin/pccard/pccardc/pccardmem.c
+++ b/usr.sbin/pccard/pccardc/pccardmem.c
@@ -26,7 +26,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: pccardmem.c,v 1.9 1997/11/18 21:08:06 nate Exp $";
+ "$Id: pccardmem.c,v 1.10 1999/02/05 16:00:15 kuriyama Exp $";
#endif /* not lint */
#include <err.h>
@@ -64,8 +64,8 @@ pccardmem_main(argc, argv)
errx(1, "arg error");
}
if (ioctl(fd, PIOCRWMEM, &addr))
- warn("ioctl");
+ err(1, "ioctl (PIOCRWMEM)");
else
printf("PCCARD Memory address set to 0x%x\n", addr);
- exit(0);
+ return 0;
}
OpenPOWER on IntegriCloud