summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pccard/pccardc/wrattr.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/wrattr.c
parent649141cd25d2f2fff89e9273621b908d74701a6e (diff)
downloadFreeBSD-src-7f28a516d851374d8758320894f497a356cdbdcb.zip
FreeBSD-src-7f28a516d851374d8758320894f497a356cdbdcb.tar.gz
Shut a bunch of warnings.
Diffstat (limited to 'usr.sbin/pccard/pccardc/wrattr.c')
-rw-r--r--usr.sbin/pccard/pccardc/wrattr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/pccard/pccardc/wrattr.c b/usr.sbin/pccard/pccardc/wrattr.c
index d8e980f..5974119 100644
--- a/usr.sbin/pccard/pccardc/wrattr.c
+++ b/usr.sbin/pccard/pccardc/wrattr.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>
@@ -43,4 +46,5 @@ off_t offs;
lseek(fd, offs, SEEK_SET);
if (write(fd, &c, 1) != 1)
perror(name);
+ return 0;
}
OpenPOWER on IntegriCloud