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>
This commit is contained in:
Hiroki Shirokura 2020-02-19 21:46:24 +09:00 committed by Mark Stapp
parent 9dddf5fe69
commit 7a4b49bdd1
2 changed files with 5 additions and 4 deletions

View File

@ -76,7 +76,8 @@ int snprintf_seg6_segs(char *str,
} }
const char *seg6local_context2str(char *str, size_t size, 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]; char b0[128];

View File

@ -119,9 +119,9 @@ static inline void *sid_copy(struct in6_addr *dst,
const char * const char *
seg6local_action2str(uint32_t action); seg6local_action2str(uint32_t action);
const char * const char *seg6local_context2str(char *str, size_t size,
seg6local_context2str(char *str, size_t size, const struct seg6local_context *ctx,
struct seg6local_context *ctx, uint32_t action); uint32_t action);
int snprintf_seg6_segs(char *str, int snprintf_seg6_segs(char *str,
size_t size, const struct seg6_segs *segs); size_t size, const struct seg6_segs *segs);