diff options
Diffstat (limited to 'source/dialogs/run.c')
-rw-r--r-- | source/dialogs/run.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/dialogs/run.c b/source/dialogs/run.c index 75fe7722..e1a5e3a4 100644 --- a/source/dialogs/run.c +++ b/source/dialogs/run.c @@ -327,20 +327,20 @@ static void run_mode_destroy ( Switcher *sw ) } } -static char *mgrv ( unsigned int selected_line, Switcher *sw, G_GNUC_UNUSED int *state, int get_entry ) +static char *mgrv ( unsigned int selected_line, const Switcher *sw, G_GNUC_UNUSED int *state, int get_entry ) { - RunModePrivateData *rmpd = (RunModePrivateData *) sw->private_data; + const RunModePrivateData *rmpd = (const RunModePrivateData *) sw->private_data; return get_entry ? g_strdup ( rmpd->cmd_list[selected_line] ) : NULL; } -static int run_token_match ( char **tokens, int not_ascii, int case_sensitive, unsigned int index, Switcher *sw ) +static int run_token_match ( char **tokens, int not_ascii, int case_sensitive, unsigned int index, const Switcher *sw ) { - RunModePrivateData *rmpd = (RunModePrivateData *) sw->private_data; + const RunModePrivateData *rmpd = (const RunModePrivateData *) sw->private_data; return token_match ( tokens, rmpd->cmd_list[index], not_ascii, case_sensitive ); } -static int run_is_not_ascii ( Switcher *sw, unsigned int index ) +static int run_is_not_ascii ( const Switcher *sw, unsigned int index ) { - RunModePrivateData *rmpd = (RunModePrivateData *) sw->private_data; + const RunModePrivateData *rmpd = (const RunModePrivateData *) sw->private_data; return is_not_ascii ( rmpd->cmd_list[index] ); } Switcher run_mode = |