Good C practices, one day I'll remember to do this all the time

This commit is contained in:
Scoopta 2020-01-31 13:29:00 -08:00
parent 3a80153e17
commit 7c511264df
3 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ void wofi_dmenu_init(struct mode* this, struct map* config) {
map_free(cached); map_free(cached);
} }
struct widget* wofi_dmenu_get_widget() { struct widget* wofi_dmenu_get_widget(void) {
struct node* node, *tmp; struct node* node, *tmp;
wl_list_for_each_reverse_safe(node, tmp, &widgets, link) { wl_list_for_each_reverse_safe(node, tmp, &widgets, link) {
struct widget* widget = node->widget; struct widget* widget = node->widget;

View File

@ -299,7 +299,7 @@ void wofi_drun_init(struct mode* this, struct map* config) {
map_free(entries); map_free(entries);
} }
struct widget* wofi_drun_get_widget() { struct widget* wofi_drun_get_widget(void) {
struct node* node, *tmp; struct node* node, *tmp;
wl_list_for_each_reverse_safe(node, tmp, &widgets, link) { wl_list_for_each_reverse_safe(node, tmp, &widgets, link) {
struct widget* widget = node->widget; struct widget* widget = node->widget;

View File

@ -128,7 +128,7 @@ void wofi_run_init(struct mode* this, struct map* config) {
map_free(entries); map_free(entries);
} }
struct widget* wofi_run_get_widget() { struct widget* wofi_run_get_widget(void) {
struct node* node, *tmp; struct node* node, *tmp;
wl_list_for_each_reverse_safe(node, tmp, &widgets, link) { wl_list_for_each_reverse_safe(node, tmp, &widgets, link) {
struct widget* widget = node->widget; struct widget* widget = node->widget;