From 3b2793877d9adfd38033f51370765f53f8821755 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Fri, 3 Nov 2017 14:48:26 +1100 Subject: [PATCH] Change set_var_value() argument from int to enum VAR_TYPES --- source/vars.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/vars.c b/source/vars.c index d41634e..c6471bd 100644 --- a/source/vars.c +++ b/source/vars.c @@ -71,7 +71,7 @@ extern int use_nat_address; int loading_global = 0; -static void set_var_value(int var_index, char *value); +static void set_var_value(enum VAR_TYPES var_index, char *value); enum VAR_TYPES find_variable (char *, int *); static void exec_warning (Window *, char *, int); @@ -975,7 +975,7 @@ static void set_var_value_dll(IrcVariableDll *dll, char *value) * It displays the results of the set and executes the function * defined in the var structure. */ -static void set_var_value(int var_index, char *value) +static void set_var_value(enum VAR_TYPES var_index, char *value) { set_ircvariable(&irc_variable[var_index], value); }