summaryrefslogtreecommitdiffstats
path: root/sysutils/bkpupsd/files
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-08-04 22:02:18 +0000
committerbillf <billf@FreeBSD.org>1999-08-04 22:02:18 +0000
commitb8ff139520c92af5f6f628fa3298649c52bace44 (patch)
treed25399b959a0ae8bd99c63c308e267f3a68fc6ad /sysutils/bkpupsd/files
parent2e8396385f8e6879d29d4bc575a904b3e4aabb90 (diff)
downloadFreeBSD-ports-b8ff139520c92af5f6f628fa3298649c52bace44.zip
FreeBSD-ports-b8ff139520c92af5f6f628fa3298649c52bace44.tar.gz
Numerous -Wall fixes. None of which were potentially breaking things,
however all of which were really annoying and missing a LOT of includes. These changes were made in a way that would anger Bruce.
Diffstat (limited to 'sysutils/bkpupsd/files')
-rw-r--r--sysutils/bkpupsd/files/patch-ab43
1 files changed, 43 insertions, 0 deletions
diff --git a/sysutils/bkpupsd/files/patch-ab b/sysutils/bkpupsd/files/patch-ab
new file mode 100644
index 0000000..71a42b4
--- /dev/null
+++ b/sysutils/bkpupsd/files/patch-ab
@@ -0,0 +1,43 @@
+--- bkpupsd.c.old Wed Aug 4 13:45:10 1999
++++ bkpupsd.c Wed Aug 4 13:55:24 1999
+@@ -27,9 +27,12 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
++#include <unistd.h>
+ #include <fcntl.h>
+ #include <err.h>
+ #include <errno.h>
++#include <string.h>
+ #include <sys/types.h>
+ #include <sys/ioctl.h>
+ #include <signal.h>
+@@ -44,16 +47,16 @@
+ #define SH_RESTORED "/usr/local/libexec/bkpupsd/bkpups.restored"
+ #define SH_BATTLOW "/usr/local/libexec/bkpupsd/bkpups.battlow"
+
++int makepid(char *s);
++
+ int main(argc, argv)
+ int argc;
+ char **argv;
+ {
+ int fd;
+ int lstatus;
+- int flags;
+ int rts_bit = TIOCM_RTS;
+ int dtr_bit = TIOCM_DTR;
+- int rng_bit = TIOCM_RNG;
+ int pfail = 0;
+ int pfcount = 0;
+ int prcount = 0;
+@@ -179,7 +182,7 @@
+ pid = getpid();
+ if((fp = fopen(s, "w")) == NULL)
+ return -1;
+- fprintf(fp, "%ld\n", pid);
++ fprintf(fp, "%lu\n", (u_long)pid);
+ fclose(fp);
+ return 0;
+ }
OpenPOWER on IntegriCloud