]> git.droids-corp.org - libcmdline.git/blobdiff - src/lib/cmdline_parse_string.c
cmdline: parse() method does not return token_len anymore
[libcmdline.git] / src / lib / cmdline_parse_string.c
index 1b2c14670ab266d03b6abf35ba3c399fb9ead921..9c76e29515b9e4f98f73b6104252b51136548425 100644 (file)
@@ -146,11 +146,13 @@ cmdline_parse_string(cmdline_parse_token_hdr_t *tk, const char *buf, void *res,
        if (res)
                strcpy(res, buf);
 
-       return token_len;
+       return 0;
 }
 
 static int
-cmdline_complete_string_start(cmdline_parse_token_hdr_t *tk, void **opaque)
+cmdline_complete_string_start(cmdline_parse_token_hdr_t *tk,
+                             __attribute__((unused)) const char *tokstr,
+                             void **opaque)
 {
        struct cmdline_token_string *tk2 = (struct cmdline_token_string *)tk;
        struct cmdline_token_string_data *sd = &tk2->string_data;;