summaryrefslogtreecommitdiffstats
path: root/isisd/isis_misc.c
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2015-11-10 18:04:43 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-03-30 02:26:12 +0200
commit02e33d3ed5a72d9a64ab68d7440f1e685fc6ca09 (patch)
tree066074db6946924f9d0d87b0e1fc289a6af690d0 /isisd/isis_misc.c
parentripd, isisd: fix warnings that make the build fail (diff)
downloadfrr-02e33d3ed5a72d9a64ab68d7440f1e685fc6ca09.tar.xz
frr-02e33d3ed5a72d9a64ab68d7440f1e685fc6ca09.zip
isisd: annotate some function arguments with const
Signed-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'isisd/isis_misc.c')
-rw-r--r--isisd/isis_misc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/isisd/isis_misc.c b/isisd/isis_misc.c
index 968fa05fe..230fe2438 100644
--- a/isisd/isis_misc.c
+++ b/isisd/isis_misc.c
@@ -63,7 +63,7 @@ char nlpidstring[30];
* This converts the isonet to its printable format
*/
const char *
-isonet_print (u_char * from, int len)
+isonet_print (const u_char * from, int len)
{
int i = 0;
char *pos = isonet;
@@ -370,7 +370,7 @@ syst2string (int type)
* Print functions - we print to static vars
*/
const char *
-snpa_print (u_char * from)
+snpa_print (const u_char * from)
{
int i = 0;
u_char *pos = (u_char *)snpa;
@@ -402,7 +402,7 @@ snpa_print (u_char * from)
}
const char *
-sysid_print (u_char * from)
+sysid_print (const u_char * from)
{
int i = 0;
char *pos = sysid;
@@ -434,7 +434,7 @@ sysid_print (u_char * from)
}
const char *
-rawlspid_print (u_char * from)
+rawlspid_print (const u_char * from)
{
char *pos = lspid;
if (!from)
@@ -553,7 +553,7 @@ unix_hostname (void)
* If no dynamic hostname found then returns formatted system ID.
*/
const char *
-print_sys_hostname (u_char *sysid)
+print_sys_hostname (const u_char *sysid)
{
struct isis_dynhn *dyn;