Some more const string fixes.

This commit is contained in:
hasso 2004-10-11 12:53:17 +00:00
parent 8552e37427
commit a149411b85
4 changed files with 9 additions and 4 deletions

View 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)

View 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) \

View 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;

View 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 *);