]> git.puffer.fish Git - mirror/frr.git/commitdiff
* isis_misc.[ch]: Fix some warnings, making some strings const.
authorhasso <hasso>
Tue, 16 Aug 2005 20:58:12 +0000 (20:58 +0000)
committerhasso <hasso>
Tue, 16 Aug 2005 20:58:12 +0000 (20:58 +0000)
isisd/ChangeLog
isisd/isis_misc.c
isisd/isis_misc.h

index f8278c5fb2a25253002bd8eb41a5c1cc1a35c037..c34f827b436d8186c257656e7053f8c707e7c785 100644 (file)
@@ -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.
index 300f02cb8c07ce8e08738d7ceacdcfbfca2d6341..a56856e04f16890aed968cafcf62f5eab56afaad 100644 (file)
@@ -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';
index 91bd2489c24c5c8accf818dd5f9fdcd8b0fc21a2..3b9758953f315f1d83143dfa669f21e0c2705beb 100644 (file)
@@ -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