mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
cleanup: Use void for zero-parameter functions
Signed-off-by: Genki Sky <sky@genki.is>
This commit is contained in:
parent
41e53d1499
commit
d1cf9acbd5
7 changed files with 8 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue