From 48582bf47f5ef7a1bf136ca455d182addad08028 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Sat, 26 Mar 2022 07:23:21 +0100 Subject: treewide: Mark constant references as const Signed-off-by: Stefano Brivio --- conf.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index 5170163..80f4303 100644 --- a/conf.c +++ b/conf.c @@ -364,7 +364,7 @@ static int conf_ns_check(void *arg) * Return: 0 on success, negative error code otherwise */ static int conf_ns_opt(struct ctx *c, - char *nsdir, char *conf_userns, const char *optarg) + char *nsdir, const char *conf_userns, const char *optarg) { int ufd = -1, nfd = -1, try, ret, netns_only_reset = c->netns_only; char userns[PATH_MAX] = { 0 }, netns[PATH_MAX]; @@ -702,7 +702,11 @@ pasta_opts: exit(EXIT_FAILURE); } -void conf_print(struct ctx *c) +/** + * conf_print() - Print fundamental configuration parameters + * @c: Execution context + */ +static void conf_print(const struct ctx *c) { char buf4[INET_ADDRSTRLEN], ifn[IFNAMSIZ]; int i; -- cgit v1.2.3