From e4a1ec7454490af0ea45013cb279eb9b15edef51 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Fri, 8 Nov 2019 14:13:33 -0500 Subject: zebra,lib: use const in more apis Use const with some args to ipaddr, zebra vxlan, mpls lsp, and nexthop apis; add some extra checks to some nexthop-related apis. Signed-off-by: Mark Stapp --- lib/mpls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mpls.c') diff --git a/lib/mpls.c b/lib/mpls.c index 759fe1206d..ac5792a686 100644 --- a/lib/mpls.c +++ b/lib/mpls.c @@ -79,7 +79,7 @@ int mpls_str2label(const char *label_str, uint8_t *num_labels, /* * Label to string conversion, labels in string separated by '/'. */ -char *mpls_label2str(uint8_t num_labels, mpls_label_t *labels, char *buf, +char *mpls_label2str(uint8_t num_labels, const mpls_label_t *labels, char *buf, int len, int pretty) { char label_buf[BUFSIZ]; -- cgit v1.2.3