summaryrefslogtreecommitdiff
blob: 2d4b1762d357b65e8660d2ab394785fa405dc5d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
add headers for various function prototypes

--- a/main.c
+++ b/main.c
@@ -24,6 +24,7 @@
 
 #include <time.h>
 #include <stdio.h>
+#include <stdlib.h> /* exit */
 #include <unistd.h>
 #include <signal.h>
 #include <fcntl.h>
--- a/log.c
+++ b/log.c
@@ -37,6 +37,7 @@
 #include <unistd.h>
 #include <syslog.h>
 #include <stdio.h>
+#include <stdlib.h> /* exit */
 #include <stdarg.h>
 #include <errno.h>
 #include <signal.h>
@@ -78,6 +79,7 @@ make_msg(const char *fmt, va_list args)
 	strcpy(msg + sizeof(msg) - sizeof(truncated), truncated);
 }
 
+#define log my_log /* log is a math builtin */
 static void
 log(int priority, const char *fmt, va_list args)
 /* Log a message, described by "fmt" and "args", with the specified
--- a/matchrx.c
+++ b/matchrx.c
@@ -23,6 +23,7 @@
 
 
 #include <stdio.h>
+#include <string.h> /* memset */
 #include <regex.h>
 #include <stdarg.h>
 #include <stdlib.h>