babeld: fix bug concerning pidfile.
diff --git a/babeld/babel_main.c b/babeld/babel_main.c
index 6065b7b..b4d6088 100644
--- a/babeld/babel_main.c
+++ b/babeld/babel_main.c
@@ -87,7 +87,7 @@
int wireless_hello_interval = -1;
int wired_hello_interval = -1;
int idle_hello_interval = -1;
-char *pidfile = "/var/run/babeld.pid";
+static char *pidfile = PATH_BABELD_PID;
const unsigned char zeroes[16] = {0};
const unsigned char ones[16] =
@@ -162,7 +162,6 @@
int rc, opt;
int do_daemonise = 0;
char *progname = NULL;
- char *pidfile = PATH_BABELD_PID;
/* Set umask before anything for security */
umask (0027);