25 lines
683 B
Diff
25 lines
683 B
Diff
Minor compilation (warnings) fixes.
|
|
|
|
Author: Jan Synacek <jsynacek@redhat.com>
|
|
|
|
--- iputils-s20121125/ninfod/ninfod.c.orig 2012-11-25 08:42:40.000000000 +0100
|
|
+++ iputils-s20121125/ninfod/ninfod.c 2012-12-06 08:29:12.323928153 +0100
|
|
@@ -110,6 +110,8 @@
|
|
# include <sys/capability.h>
|
|
#endif
|
|
|
|
+#include <time.h>
|
|
+
|
|
#include "ninfod.h"
|
|
|
|
#ifndef offsetof
|
|
@@ -406,7 +408,7 @@ static void do_daemonize(void)
|
|
if ((fp = fopen(opt_p, "r"))) {
|
|
if (fscanf(fp, "%d", &pid) != 1) {
|
|
DEBUG(LOG_ERR, "pid file '%s' exists, but read failed.\n",
|
|
- opt_p, pid);
|
|
+ opt_p);
|
|
} else {
|
|
DEBUG(LOG_ERR, "pid file '%s' exists : %d\n",
|
|
opt_p, pid);
|