summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_aspath.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-11-20 17:26:59 +0100
committerDavid Lamparter <equinox@diac24.net>2019-12-02 15:01:29 +0100
commit2b64873d24730882af68bdf2881aa380a3a8d17f (patch)
tree7bb835e81d96fc17ec5d1bed8bb5f5857a9673ad /bgpd/bgp_aspath.c
parent*: make frr_yang_module_info const (diff)
downloadfrr-2b64873d24730882af68bdf2881aa380a3a8d17f.tar.xz
frr-2b64873d24730882af68bdf2881aa380a3a8d17f.zip
*: generously apply const
const const const your boat, merrily down the stream... Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'bgpd/bgp_aspath.c')
-rw-r--r--bgpd/bgp_aspath.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c
index 4257b601f..5fa773c95 100644
--- a/bgpd/bgp_aspath.c
+++ b/bgpd/bgp_aspath.c
@@ -102,8 +102,10 @@ static void assegment_data_free(as_t *asdata)
XFREE(MTYPE_AS_SEG_DATA, asdata);
}
-const char *aspath_segment_type_str[] = {"as-invalid", "as-set", "as-sequence",
- "as-confed-sequence", "as-confed-set"};
+const char *const aspath_segment_type_str[] = {
+ "as-invalid", "as-set", "as-sequence", "as-confed-sequence",
+ "as-confed-set"
+};
/* Get a new segment. Note that 0 is an allowed length,
* and will result in a segment with no allocated data segment.