diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-11-23 22:14:26 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-11-23 22:15:27 +0100 |
commit | cbba58914fcbe8b4df713611b1ebacba098ffd16 (patch) | |
tree | c3376efd8a5d65c775611333f451994bf2d620b3 /source/dialogs/run.c | |
parent | ad778b7dc107ddc851fdb9e249ca2aa340766d93 (diff) |
Some cleanups and re-ordering of parameters to be consistent.
Diffstat (limited to 'source/dialogs/run.c')
-rw-r--r-- | source/dialogs/run.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/dialogs/run.c b/source/dialogs/run.c index 29af9611..5ba2fd5b 100644 --- a/source/dialogs/run.c +++ b/source/dialogs/run.c @@ -282,8 +282,7 @@ static unsigned int run_mode_get_num_entries ( const Switcher *sw ) return rmpd->cmd_list_length; } -static SwitcherMode run_mode_result ( int mretv, char **input, unsigned int selected_line, - Switcher *sw ) +static SwitcherMode run_mode_result ( Switcher *sw, int mretv, char **input, unsigned int selected_line ) { RunModePrivateData *rmpd = (RunModePrivateData *) sw->private_data; SwitcherMode retv = MODE_EXIT; @@ -332,7 +331,7 @@ static char *mgrv ( unsigned int selected_line, const Switcher *sw, G_GNUC_UNUSE 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, const Switcher *sw ) +static int run_token_match ( const Switcher *sw, char **tokens, int not_ascii, int case_sensitive, unsigned int index ) { const RunModePrivateData *rmpd = (const RunModePrivateData *) sw->private_data; return token_match ( tokens, rmpd->cmd_list[index], not_ascii, case_sensitive ); |