From: Ævar Arnfjörð Bjarmason Date: Fri, 17 Mar 2023 05:01:07 GMT Subject: [RFC PATCH 2/5] config.c: use "enum config_origin_type", not "int" Message-ID: In-Reply-To: Change the current_config_origin_type() function to use the appropriate enum type for its "type" variable. Signed-off-by: Ævar Arnfjörð Bjarmason --- config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.c b/config.c index 00090a32fc3..a4105c456c3 100644 --- a/config.c +++ b/config.c @@ -3768,7 +3768,8 @@ int parse_config_key(const char *var, const char *current_config_origin_type(void) { - int type; + enum config_origin_type type; + if (current_config_kvi) type = current_config_kvi->origin_type; else if(cf) -- 2.40.0.rc1.1034.g5867a1b10c5