Change the current_config_origin_type() function to use the appropriate enum type for its "type" variable. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> --- 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