From 695ef45cf1d8291179ff54547c08a178b9a6fa62 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Mon, 1 Mar 2021 22:02:50 +0100 Subject: [PATCH] [options] const char * in get_opt_ --- src/config/options.c | 2 +- src/config/options.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/options.c b/src/config/options.c index b3abdac5d..42d9d2674 100644 --- a/src/config/options.c +++ b/src/config/options.c @@ -284,7 +284,7 @@ get_opt_( #ifdef CONFIG_DEBUG char *file, int line, enum option_type option_type, #endif - struct option *tree, char *name, struct session *ses) + struct option *tree, const char *name, struct session *ses) { struct option *opt = NULL; diff --git a/src/config/options.h b/src/config/options.h index 859ebb95f..f3b5ac5d2 100644 --- a/src/config/options.h +++ b/src/config/options.h @@ -299,10 +299,10 @@ extern struct option *get_opt_rec(struct option *, const char *); extern struct option *get_opt_rec_real(struct option *, const char *); struct option *indirect_option(struct option *); #ifdef CONFIG_DEBUG -extern union option_value *get_opt_(char *, int, enum option_type, struct option *, char *, struct session *); +extern union option_value *get_opt_(char *, int, enum option_type, struct option *, const char *, struct session *); #define get_opt(tree, name, ses, type) get_opt_(__FILE__, __LINE__, type, tree, name, ses) #else -extern union option_value *get_opt_(struct option *, char *, struct session *); +extern union option_value *get_opt_(struct option *, const char *, struct session *); #define get_opt(tree, name, ses, type) get_opt_(tree, name, ses) #endif