Make display_dispatch_with_timeout static
parent
4f8559405f
commit
4d339c70d2
3
main.c
3
main.c
|
@ -271,8 +271,7 @@ static int display_poll(struct wl_display *display, short int events, int timeou
|
|||
return ret;
|
||||
}
|
||||
|
||||
int display_dispatch_with_timeout(struct wl_display *display, int timeout);
|
||||
int display_dispatch_with_timeout(struct wl_display *display, int timeout) {
|
||||
static int display_dispatch_with_timeout(struct wl_display *display, int timeout) {
|
||||
if (wl_display_prepare_read(display) == -1) {
|
||||
return wl_display_dispatch_pending(display);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue