From 7c511264dffd0d5d2b0e82f02e826417ce36d012 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Fri, 31 Jan 2020 13:29:00 -0800 Subject: [PATCH] Good C practices, one day I'll remember to do this all the time --- modes/dmenu.c | 2 +- modes/drun.c | 2 +- modes/run.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modes/dmenu.c b/modes/dmenu.c index ada2f0b..7fe6a2d 100644 --- a/modes/dmenu.c +++ b/modes/dmenu.c @@ -105,7 +105,7 @@ void wofi_dmenu_init(struct mode* this, struct map* config) { map_free(cached); } -struct widget* wofi_dmenu_get_widget() { +struct widget* wofi_dmenu_get_widget(void) { struct node* node, *tmp; wl_list_for_each_reverse_safe(node, tmp, &widgets, link) { struct widget* widget = node->widget; diff --git a/modes/drun.c b/modes/drun.c index 402bd67..1010d57 100644 --- a/modes/drun.c +++ b/modes/drun.c @@ -299,7 +299,7 @@ void wofi_drun_init(struct mode* this, struct map* config) { map_free(entries); } -struct widget* wofi_drun_get_widget() { +struct widget* wofi_drun_get_widget(void) { struct node* node, *tmp; wl_list_for_each_reverse_safe(node, tmp, &widgets, link) { struct widget* widget = node->widget; diff --git a/modes/run.c b/modes/run.c index e85d3d5..3ffe809 100644 --- a/modes/run.c +++ b/modes/run.c @@ -128,7 +128,7 @@ void wofi_run_init(struct mode* this, struct map* config) { map_free(entries); } -struct widget* wofi_run_get_widget() { +struct widget* wofi_run_get_widget(void) { struct node* node, *tmp; wl_list_for_each_reverse_safe(node, tmp, &widgets, link) { struct widget* widget = node->widget;