summaryrefslogtreecommitdiff
path: root/lib/srv6.c
diff options
context:
space:
mode:
authorHiroki Shirokura <slank.dev@gmail.com>2020-02-19 21:46:24 +0900
committerMark Stapp <mjs@voltanet.io>2021-06-02 10:24:47 -0400
commit7a4b49bdd1ce453cb50a84167fb9f3e2f8e58630 (patch)
tree73b1def711b59872d7ce9301a40eaea2ff5161d9 /lib/srv6.c
parent9dddf5fe699518f28e028541c9a57e8fde2402c4 (diff)
lib: refactor func prototype seg6local_context2str (step1)
Make seg6local_context2str function's prototype better. This function is added on commit e496b4203, and function interface's considering wasn't enough. Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'lib/srv6.c')
-rw-r--r--lib/srv6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/srv6.c b/lib/srv6.c
index 287bf56089..9b9f402987 100644
--- a/lib/srv6.c
+++ b/lib/srv6.c
@@ -76,7 +76,8 @@ int snprintf_seg6_segs(char *str,
}
const char *seg6local_context2str(char *str, size_t size,
- struct seg6local_context *ctx, uint32_t action)
+ const struct seg6local_context *ctx,
+ uint32_t action)
{
char b0[128];