cmdline: parse() method does not return token_len anymore
[libcmdline.git] / src / lib / cmdline_parse_string.c
index 1b2c146..9c76e29 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;;