diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -4,2 +4,3 @@ #include <signal.h> +#include <string.h> @@ -176,3 +177,2 @@ main(int argc, char **argv) if (!foreground) { - int i; if (daemon(0, 1)) { @@ -232,3 +232,2 @@ pidfile_create(char const *pid_file) "cannot create pidfile `%s': %s\n", - progname, pid_file, @@ -257,3 +256,3 @@ pidfile_check(char const *pid_file) snmp_log(LOG_ERR, - "cannot get pid from pidfile `%s'\n", + "cannot get pid from pidfile `%s': %s\n", pid_file, |