mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-08 20:56:22 +00:00
Some more const string fixes.
This commit is contained in:
parent
8552e37427
commit
a149411b85
@ -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)
|
||||
|
||||
@ -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) \
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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 *);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user