summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorhasso <hasso>2005-08-16 22:58:12 +0200
committerhasso <hasso>2005-08-16 22:58:12 +0200
commit56b24f4c33d2dc093922945319da02c7cbdadd2b (patch)
treec04bb9cc0ecaffd0b03fb8b9a3044b62a1b6037b /isisd
parent2005-08-16 Paul Jakma <paul.jakma@sun.com> (diff)
downloadfrr-56b24f4c33d2dc093922945319da02c7cbdadd2b.tar.xz
frr-56b24f4c33d2dc093922945319da02c7cbdadd2b.zip
* isis_misc.[ch]: Fix some warnings, making some strings const.
Diffstat (limited to 'isisd')
-rw-r--r--isisd/ChangeLog4
-rw-r--r--isisd/isis_misc.c4
-rw-r--r--isisd/isis_misc.h2
3 files changed, 7 insertions, 3 deletions
diff --git a/isisd/ChangeLog b/isisd/ChangeLog
index f8278c5fb..c34f827b4 100644
--- a/isisd/ChangeLog
+++ b/isisd/ChangeLog
@@ -1,3 +1,7 @@
+2005-08-16 Hasso Tepper <hasso at quagga.net>
+
+ * isis_misc.[ch]: Fix some warnings, making some strings const.
+
2005-08-10 Hasso Tepper <hasso at quagga.net>
* topology/spgrid.c: MAXLONG is deprecated, use LONG_MAX instead.
diff --git a/isisd/isis_misc.c b/isisd/isis_misc.c
index 300f02cb8..a56856e04 100644
--- a/isisd/isis_misc.c
+++ b/isisd/isis_misc.c
@@ -162,10 +162,10 @@ dotformat2buff (u_char * buff, u_char * dotted)
* conversion of XXXX.XXXX.XXXX to memory
*/
int
-sysid2buff (u_char * buff, u_char * dotted)
+sysid2buff (u_char * buff, const u_char * dotted)
{
int len = 0;
- u_char *pos = dotted;
+ const u_char *pos = dotted;
u_char number[3];
number[2] = '\0';
diff --git a/isisd/isis_misc.h b/isisd/isis_misc.h
index 91bd2489c..3b9758953 100644
--- a/isisd/isis_misc.h
+++ b/isisd/isis_misc.h
@@ -35,7 +35,7 @@ struct in_addr newprefix2inaddr (u_char * prefix_start,
* return value of 0 indicates wrong input
*/
int dotformat2buff (u_char *, u_char *);
-int sysid2buff (u_char *, u_char *);
+int sysid2buff (u_char *, const u_char *);
/*
* Printing functions