summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pccard/pccardc/wrreg.c
diff options
context:
space:
mode:
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