Commit 787daa96 authored by Matthieu Boutier's avatar Matthieu Boutier

Make filenames variables "const".

parent 43312a4f
...@@ -65,7 +65,7 @@ int default_wired_hello_interval = -1; ...@@ -65,7 +65,7 @@ int default_wired_hello_interval = -1;
int resend_delay = -1; int resend_delay = -1;
int random_id = 0; int random_id = 0;
int do_daemonise = 0; int do_daemonise = 0;
char *logfile = NULL, const char *logfile = NULL,
*pidfile = "/var/run/babeld.pid", *pidfile = "/var/run/babeld.pid",
*state_file = "/var/lib/babel-state"; *state_file = "/var/lib/babel-state";
...@@ -100,7 +100,7 @@ main(int argc, char **argv) ...@@ -100,7 +100,7 @@ main(int argc, char **argv)
struct sockaddr_in6 sin6; struct sockaddr_in6 sin6;
int rc, fd, i, opt; int rc, fd, i, opt;
time_t expiry_time, source_expiry_time, kernel_dump_time; time_t expiry_time, source_expiry_time, kernel_dump_time;
char *config_file = NULL; const char *config_file = NULL;
void *vrc; void *vrc;
unsigned int seed; unsigned int seed;
struct interface *ifp; struct interface *ifp;
......
...@@ -87,7 +87,7 @@ extern int default_wireless_hello_interval, default_wired_hello_interval; ...@@ -87,7 +87,7 @@ extern int default_wireless_hello_interval, default_wired_hello_interval;
extern int resend_delay; extern int resend_delay;
extern int random_id; extern int random_id;
extern int do_daemonise; extern int do_daemonise;
extern char *logfile, *pidfile, *state_file; extern const char *logfile, *pidfile, *state_file;
extern int link_detect; extern int link_detect;
extern int all_wireless; extern int all_wireless;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment