summaryrefslogtreecommitdiffstats
path: root/lib/zclient.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-03-03 08:57:02 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2015-04-21 10:18:44 +0200
commitfd8f6ebb4c6b9e5364b98d2b5fd345d1dcc08824 (patch)
tree1976b8f404ed9293af119fc733117607b5c372ec /lib/zclient.c
parent81a4e85442e2011a47bbb25e8301dc40ec4ed9b6 (diff)
downloadquagga-fd8f6ebb4c6b9e5364b98d2b5fd345d1dcc08824.tar.bz2
quagga-fd8f6ebb4c6b9e5364b98d2b5fd345d1dcc08824.tar.xz
lib: use const consistently for zserv path
The global variable is missing its const, but the accessor function has a meaningless extra const in exchange... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index 963c7052..1e05d6dd 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -41,7 +41,7 @@ static void zclient_event (enum event, struct zclient *);
extern struct thread_master *master;
-char *zclient_serv_path = NULL;
+const char *zclient_serv_path = NULL;
/* This file local debug flag. */
int zclient_debug = 0;
@@ -1053,7 +1053,7 @@ zclient_event (enum event event, struct zclient *zclient)
}
}
-const char *const zclient_serv_path_get()
+const char *zclient_serv_path_get()
{
return zclient_serv_path ? zclient_serv_path : ZEBRA_SERV_PATH;
}