]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: refactor func prototype seg6local_context2str (step1)
authorHiroki Shirokura <slank.dev@gmail.com>
Wed, 19 Feb 2020 12:46:24 +0000 (21:46 +0900)
committerMark Stapp <mjs@voltanet.io>
Wed, 2 Jun 2021 14:24:47 +0000 (10:24 -0400)
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>
lib/srv6.c
lib/srv6.h

index 287bf560897efd4a159c59a4da2abdba0f42a76a..9b9f40298743eb0da8f21e56cfe57059d78729db 100644 (file)
@@ -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];
 
index 24c7ffc3a2eb0576042631f314ab0830fa9d9577..b72b098c782bd949e7ef48177ae4b4791f079f66 100644 (file)
@@ -119,9 +119,9 @@ static inline void *sid_copy(struct in6_addr *dst,
 const char *
 seg6local_action2str(uint32_t action);
 
-const char *
-seg6local_context2str(char *str, size_t size,
-               struct seg6local_context *ctx, uint32_t action);
+const char *seg6local_context2str(char *str, size_t size,
+                                 const struct seg6local_context *ctx,
+                                 uint32_t action);
 
 int snprintf_seg6_segs(char *str,
                size_t size, const struct seg6_segs *segs);