summaryrefslogtreecommitdiffstats
path: root/ripngd/ripng_offset.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-11 14:57:57 +0200
committerhasso <hasso>2004-10-11 14:57:57 +0200
commit98b718a9d2aa7a3324c553944e26914fe090b87a (patch)
tree13a7002a3265a2debfa411a2a2c544dbde972f0a /ripngd/ripng_offset.c
parentSome more const string fixes. (diff)
downloadfrr-98b718a9d2aa7a3324c553944e26914fe090b87a.tar.xz
frr-98b718a9d2aa7a3324c553944e26914fe090b87a.zip
Sync with changes in lib. Make more strings const.
Diffstat (limited to 'ripngd/ripng_offset.c')
-rw-r--r--ripngd/ripng_offset.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/ripngd/ripng_offset.c b/ripngd/ripng_offset.c
index ab3c46012..46e23f0b6 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;