wlserver: remove wlserver_run return value

It always returns 0.
This commit is contained in:
Simon Ser 2021-09-10 11:01:54 +02:00
parent cd0e12d050
commit fc748ebd78
2 changed files with 2 additions and 3 deletions

View file

@ -735,7 +735,7 @@ void wlserver_unlock(void)
pthread_mutex_unlock(&waylock); pthread_mutex_unlock(&waylock);
} }
int wlserver_run(void) void wlserver_run(void)
{ {
struct pollfd pollfd = { struct pollfd pollfd = {
.fd = wl_event_loop_get_fd( wlserver.event_loop ), .fd = wl_event_loop_get_fd( wlserver.event_loop ),
@ -774,7 +774,6 @@ int wlserver_run(void)
wlr_xwayland_server_destroy(wlserver.wlr.xwayland_server); wlr_xwayland_server_destroy(wlserver.wlr.xwayland_server);
wl_display_destroy_clients(wlserver.display); wl_display_destroy_clients(wlserver.display);
wl_display_destroy(wlserver.display); wl_display_destroy(wlserver.display);
return 0;
} }
void wlserver_keyboardfocus( struct wlr_surface *surface ) void wlserver_keyboardfocus( struct wlr_surface *surface )

View file

@ -76,7 +76,7 @@ int wlsession_open_kms( const char *device_name );
int wlserver_init( int argc, char **argv, bool bIsNested ); int wlserver_init( int argc, char **argv, bool bIsNested );
int wlserver_run(void); void wlserver_run(void);
void wlserver_lock(void); void wlserver_lock(void);
void wlserver_unlock(void); void wlserver_unlock(void);