diff --git a/inc/wofi_api.h b/inc/wofi_api.h index f0ec82e..4484928 100644 --- a/inc/wofi_api.h +++ b/inc/wofi_api.h @@ -40,7 +40,7 @@ void wofi_remove_cache(struct mode* mode, const char* cmd); struct wl_list* wofi_read_cache(struct mode* mode); -struct widget* wofi_create_widget(struct mode* mode, char** text, char* search_text, char** actions, size_t action_count); +struct widget* wofi_create_widget(struct mode* mode, char* text[], char* search_text, char* actions[], size_t action_count); void wofi_insert_widgets(struct mode* mode); diff --git a/src/wofi.c b/src/wofi.c index 9ff8488..6234210 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -625,7 +625,7 @@ struct wl_list* wofi_read_cache(struct mode* mode) { return cache; } -struct widget* wofi_create_widget(struct mode* mode, char** text, char* search_text, char** actions, size_t action_count) { +struct widget* wofi_create_widget(struct mode* mode, char* text[], char* search_text, char* actions[], size_t action_count) { struct widget* widget = malloc(sizeof(struct widget)); widget->mode = strdup(mode->name); widget->text = malloc(action_count * sizeof(char*));