diff options
author | hasso <hasso> | 2004-10-11 12:57:57 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-10-11 12:57:57 +0000 |
commit | 98b718a9d2aa7a3324c553944e26914fe090b87a (patch) | |
tree | 13a7002a3265a2debfa411a2a2c544dbde972f0a /ripngd/ripng_offset.c | |
parent | a149411b85bbe74cde47d82193026b9401b29de0 (diff) |
Sync with changes in lib. Make more strings const.
Diffstat (limited to 'ripngd/ripng_offset.c')
-rw-r--r-- | ripngd/ripng_offset.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/ripngd/ripng_offset.c b/ripngd/ripng_offset.c index ab3c4601..46e23f0b 100644 --- a/ripngd/ripng_offset.c +++ b/ripngd/ripng_offset.c @@ -51,7 +51,7 @@ struct ripng_offset_list static struct list *ripng_offset_list_master; int -strcmp_safe (char *s1, char *s2) +strcmp_safe (const char *s1, const char *s2) { if (s1 == NULL && s2 == NULL) return 0; @@ -78,7 +78,7 @@ ripng_offset_list_free (struct ripng_offset_list *offset) } struct ripng_offset_list * -ripng_offset_list_lookup (char *ifname) +ripng_offset_list_lookup (const char *ifname) { struct ripng_offset_list *offset; struct listnode *nn; @@ -92,7 +92,7 @@ ripng_offset_list_lookup (char *ifname) } struct ripng_offset_list * -ripng_offset_list_get (char *ifname) +ripng_offset_list_get (const char *ifname) { struct ripng_offset_list *offset; @@ -109,8 +109,9 @@ ripng_offset_list_get (char *ifname) } int -ripng_offset_list_set (struct vty *vty, char *alist, char *direct_str, - char *metric_str, char *ifname) +ripng_offset_list_set (struct vty *vty, const char *alist, + const char *direct_str, const char *metric_str, + const char *ifname) { int direct; int metric; @@ -147,8 +148,9 @@ ripng_offset_list_set (struct vty *vty, char *alist, char *direct_str, } int -ripng_offset_list_unset (struct vty *vty, char *alist, char *direct_str, - char *metric_str, char *ifname) +ripng_offset_list_unset (struct vty *vty, const char *alist, + const char *direct_str, const char *metric_str, + const char *ifname) { int direct; int metric; |