diff options
author | Genki Sky <sky@genki.is> | 2018-05-30 20:11:57 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-05-30 20:19:16 -0400 |
commit | d1cf9acbd5ab6735952d013e5eb685e7139094a7 (patch) | |
tree | a06303f0bd9ac9c1f1b18ac204c9239ac499e9ec /examples | |
parent | 41e53d14997de21fbad80d420acb358bec4341e8 (diff) | |
download | wlroots-d1cf9acbd5ab6735952d013e5eb685e7139094a7.tar.xz |
cleanup: Use void for zero-parameter functions
Signed-off-by: Genki Sky <sky@genki.is>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/layer-shell.c | 4 | ||||
-rw-r--r-- | examples/simple.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/layer-shell.c b/examples/layer-shell.c index ec25fe42..21ef3e93 100644 --- a/examples/layer-shell.c +++ b/examples/layer-shell.c @@ -149,7 +149,7 @@ static void draw(void) { demo.last_frame = ts; } -static void draw_popup() { +static void draw_popup(void) { static float alpha_mod = -0.01; eglMakeCurrent(egl.display, popup_egl_surface, popup_egl_surface, egl.context); @@ -188,7 +188,7 @@ static void xdg_popup_configure(void *data, struct xdg_popup *xdg_popup, } } -static void popup_destroy() { +static void popup_destroy(void) { wlr_egl_destroy_surface(&egl, popup_egl_surface); wl_egl_window_destroy(popup_egl_window); xdg_popup_destroy(popup); diff --git a/examples/simple.c b/examples/simple.c index 60acd7db..cbe60c98 100644 --- a/examples/simple.c +++ b/examples/simple.c @@ -143,7 +143,7 @@ void new_input_notify(struct wl_listener *listener, void *data) { } } -int main() { +int main(void) { wlr_log_init(L_DEBUG, NULL); struct wl_display *display = wl_display_create(); struct sample_state state = { |