cmdline: add the incomplete token string as an argument of iter_start()
[libcmdline.git] / src / extension_example / parse_obj_list.c
index d561519..9869e09 100644 (file)
@@ -70,7 +70,9 @@ parse_obj_list(cmdline_parse_token_hdr_t *tk, const char *buf, void *res,
 }
 
 static int
-complete_obj_list_start(cmdline_parse_token_hdr_t *tk, void **opaque)
+complete_obj_list_start(cmdline_parse_token_hdr_t *tk,
+                       __attribute__((unused)) const char *tokstr,
+                       void **opaque)
 {
        struct token_obj_list *tk2 = (struct token_obj_list *)tk;
        struct token_obj_list_data *tkd = &tk2->obj_list_data;