]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Some more const string fixes.
authorhasso <hasso>
Mon, 11 Oct 2004 12:53:17 +0000 (12:53 +0000)
committerhasso <hasso>
Mon, 11 Oct 2004 12:53:17 +0000 (12:53 +0000)
lib/ChangeLog
lib/command.h
lib/sockunion.c
lib/sockunion.h

index d258ab3023ee7157f2f0db3508df6d5ab3199cd6..9a01f63682e8ce1fb5560254d2c949926f980f8b 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-11 Hasso Tepper <hasso at quagga.net>
+
+       * command.h: Sync DEFUNSH with other macros.
+       * sockunion.c, sockunion.h: More const strings.
+
 2004-10-11 Paul Jakma <paul@dishone.st>
 
        * thread.c: (funcname_thread_add_timer) 
index 0f806c872209efb5d23587e3f49e47c7eb20c62c..a8387346e939684192c37a80cf6ae28bd1aec527 100644 (file)
@@ -192,7 +192,7 @@ struct desc
 
 /* DEFUN + DEFSH */
 #define DEFUNSH(daemon, funcname, cmdname, cmdstr, helpstr) \
-  int funcname (struct cmd_element *, struct vty *, int, char **); \
+  int funcname (struct cmd_element *, struct vty *, int, const char *[]); \
   struct cmd_element cmdname = \
   { \
     cmdstr, \
@@ -201,7 +201,7 @@ struct desc
     daemon \
   }; \
   int funcname \
-  (struct cmd_element *self, struct vty *vty, int argc, char **argv)
+  (struct cmd_element *self, struct vty *vty, int argc, const char *argv[])
 
 /* ALIAS macro which define existing command's alias. */
 #define ALIAS(funcname, cmdname, cmdstr, helpstr) \
index 587b324a8887da4424338bcdd5168a50f757db37..eb29ced2c537b8ae6bf318c0ef2b189599f05cdb 100644 (file)
@@ -133,7 +133,7 @@ inet_sutop (union sockunion *su, char *str)
 }
 
 int
-str2sockunion (char *str, union sockunion *su)
+str2sockunion (const char *str, union sockunion *su)
 {
   int ret;
 
index 99bdf6a3d32e70fbfa1d925f17bffa82c889a0c3..92e536c121c87e7ee84b3abc78ac46c00921c154 100644 (file)
@@ -87,7 +87,7 @@ enum connect_result
 #define sockunion_family(X)  (X)->sa.sa_family
 
 /* Prototypes. */
-int str2sockunion (char *, union sockunion *);
+int str2sockunion (const char *, union sockunion *);
 const char *sockunion2str (union sockunion *, char *, size_t);
 int sockunion_cmp (union sockunion *, union sockunion *);
 int sockunion_same (union sockunion *, union sockunion *);