summaryrefslogtreecommitdiffstats
path: root/source/helper.c
diff options
context:
space:
mode:
authorQC <qball@gmpclient.org>2015-03-27 20:28:53 +0100
committerQC <qball@gmpclient.org>2015-03-27 20:28:53 +0100
commitb21368c005ac7349ed1ade37512a864a494477ee (patch)
treeb11c9fdb2745dad04de81ca4a8047c05ac160289 /source/helper.c
parentf52b697dd4a4d973ee9223960baa8f7c00977324 (diff)
OO-ify the Switchers.
Diffstat (limited to 'source/helper.c')
-rw-r--r--source/helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/helper.c b/source/helper.c
index 9c43a625..424165d5 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -318,7 +318,7 @@ int find_arg_char ( const char * const key, char *val )
*/
int token_match ( char **tokens, const char *input, int case_sensitive,
__attribute__( ( unused ) ) int index,
- __attribute__( ( unused ) ) void *data )
+ __attribute__( ( unused ) ) Switcher *data )
{
int match = 1;
char *compk = token_collate_key ( input, case_sensitive );
@@ -333,7 +333,7 @@ int token_match ( char **tokens, const char *input, int case_sensitive,
return match;
}
-int execute_generator ( char * cmd )
+int execute_generator ( const char * cmd )
{
char **args = NULL;
int argv = 0;