summaryrefslogtreecommitdiff
path: root/babeld/babel_main.c
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2012-01-10 15:58:04 +0400
committerPaul Jakma <paul@quagga.net>2012-03-25 17:06:52 +0100
commit87c271c69330cfcea7955503eba3ed15a15cb634 (patch)
treeb336a3004fcdc45dea7ff336889984ca8f94e320 /babeld/babel_main.c
parent528eab1fd04434e0befe9a98191b11602e3cb2ff (diff)
babeld: address remaining -Wcast-qual warnings
* net.c * babel_send(): arguments are not treated as "const", justify declaration * babel_main.c: declare constant pointers as such
Diffstat (limited to 'babeld/babel_main.c')
-rw-r--r--babeld/babel_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/babeld/babel_main.c b/babeld/babel_main.c
index b4d60886..1c1d0eeb 100644
--- a/babeld/babel_main.c
+++ b/babeld/babel_main.c
@@ -87,14 +87,14 @@ int link_detect = 0;
int wireless_hello_interval = -1;
int wired_hello_interval = -1;
int idle_hello_interval = -1;
-static char *pidfile = PATH_BABELD_PID;
+static const char *pidfile = PATH_BABELD_PID;
const unsigned char zeroes[16] = {0};
const unsigned char ones[16] =
{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
-static char *state_file = "/var/lib/babeld/babel-state";
+static const char *state_file = "/var/lib/babeld/babel-state";
unsigned char protocol_group[16]; /* babel's link-local multicast address */
int protocol_port; /* babel's port */