diff options
author | QC <qball@gmpclient.org> | 2015-09-19 20:59:50 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-09-19 21:00:06 +0200 |
commit | 31fe5759b8bede7a31535c61977b9efe2438d789 (patch) | |
tree | f5f8222d560ed666f85e9ee5f98fa958b6c2f39d /source/dialogs/script.c | |
parent | b18d68eff26429ed08d560b187c46770eb7db0b2 (diff) |
More line fixing.
Diffstat (limited to 'source/dialogs/script.c')
-rw-r--r-- | source/dialogs/script.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/dialogs/script.c b/source/dialogs/script.c index 3bb54b1a..915fc602 100644 --- a/source/dialogs/script.c +++ b/source/dialogs/script.c @@ -173,8 +173,7 @@ Switcher *script_switcher_parse_setup ( const char *str ) char *endp = NULL; char *parse = g_strdup ( str ); unsigned int index = 0; - for ( char *token = strtok_r ( parse, ":", &endp ); token != NULL; - token = strtok_r ( NULL, ":", &endp ) ) { + for ( char *token = strtok_r ( parse, ":", &endp ); token != NULL; token = strtok_r ( NULL, ":", &endp ) ) { if ( index == 0 ) { g_strlcpy ( sw->name, token, 32 ); } @@ -197,8 +196,7 @@ Switcher *script_switcher_parse_setup ( const char *str ) return sw; } - fprintf ( stderr, "The script command '%s' has %u options, but needs 2: <name>:<script>.\n", - str, index ); + fprintf ( stderr, "The script command '%s' has %u options, but needs 2: <name>:<script>.\n", str, index ); script_switcher_free ( sw ); return NULL; } |