summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pccard/pccardc/wrreg.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-08-25 09:46:01 +0000
committerphk <phk@FreeBSD.org>1995-08-25 09:46:01 +0000
commit7f28a516d851374d8758320894f497a356cdbdcb (patch)
treef682392ec98f5609e98b99859aa3f11019bd0e09 /usr.sbin/pccard/pccardc/wrreg.c
parent649141cd25d2f2fff89e9273621b908d74701a6e (diff)
downloadFreeBSD-src-7f28a516d851374d8758320894f497a356cdbdcb.zip
FreeBSD-src-7f28a516d851374d8758320894f497a356cdbdcb.tar.gz
Shut a bunch of warnings.
Diffstat (limited to 'usr.sbin/pccard/pccardc/wrreg.c')
-rw-r--r--usr.sbin/pccard/pccardc/wrreg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/pccard/pccardc/wrreg.c b/usr.sbin/pccard/pccardc/wrreg.c
index 88a54ba..42bdd7d 100644
--- a/usr.sbin/pccard/pccardc/wrreg.c
+++ b/usr.sbin/pccard/pccardc/wrreg.c
@@ -1,4 +1,7 @@
#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <fcntl.h>
#include <sys/types.h>
#include <sys/ioctl.h>
@@ -36,4 +39,5 @@ struct pcic_reg r;
r.value = value;
if (ioctl(fd, PIOCSREG, &r))
perror("ioctl");
+ return 0;
}
OpenPOWER on IntegriCloud