diff options
-rw-r--r-- | src/event-loop.c | 6 | ||||
-rw-r--r-- | src/wayland-server.c | 4 | ||||
-rw-r--r-- | src/wayland-server.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/event-loop.c b/src/event-loop.c index de1863a..2dfe0ae 100644 --- a/src/event-loop.c +++ b/src/event-loop.c @@ -71,7 +71,7 @@ wl_event_source_fd_dispatch(struct wl_event_source *source, if (ep->events & EPOLLIN) mask |= WL_EVENT_READABLE; if (ep->events & EPOLLOUT) - mask |= WL_EVENT_WRITEABLE; + mask |= WL_EVENT_WRITABLE; return fd_source->func(fd_source->fd, mask, fd_source->base.data); } @@ -118,7 +118,7 @@ wl_event_loop_add_fd(struct wl_event_loop *loop, memset(&ep, 0, sizeof ep); if (mask & WL_EVENT_READABLE) ep.events |= EPOLLIN; - if (mask & WL_EVENT_WRITEABLE) + if (mask & WL_EVENT_WRITABLE) ep.events |= EPOLLOUT; ep.data.ptr = source; @@ -141,7 +141,7 @@ wl_event_source_fd_update(struct wl_event_source *source, uint32_t mask) memset(&ep, 0, sizeof ep); if (mask & WL_EVENT_READABLE) ep.events |= EPOLLIN; - if (mask & WL_EVENT_WRITEABLE) + if (mask & WL_EVENT_WRITABLE) ep.events |= EPOLLOUT; ep.data.ptr = source; diff --git a/src/wayland-server.c b/src/wayland-server.c index 415173b..89e8a81 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -180,7 +180,7 @@ wl_client_connection_data(int fd, uint32_t mask, void *data) if (mask & WL_EVENT_READABLE) cmask |= WL_CONNECTION_READABLE; - if (mask & WL_EVENT_WRITEABLE) + if (mask & WL_EVENT_WRITABLE) cmask |= WL_CONNECTION_WRITABLE; len = wl_connection_data(connection, cmask); @@ -261,7 +261,7 @@ wl_client_connection_update(struct wl_connection *connection, if (mask & WL_CONNECTION_READABLE) emask |= WL_EVENT_READABLE; if (mask & WL_CONNECTION_WRITABLE) - emask |= WL_EVENT_WRITEABLE; + emask |= WL_EVENT_WRITABLE; return wl_event_source_fd_update(client->source, emask); } diff --git a/src/wayland-server.h b/src/wayland-server.h index 8019c56..5176a09 100644 --- a/src/wayland-server.h +++ b/src/wayland-server.h @@ -33,7 +33,7 @@ extern "C" { enum { WL_EVENT_READABLE = 0x01, - WL_EVENT_WRITEABLE = 0x02 + WL_EVENT_WRITABLE = 0x02 }; struct wl_event_loop; |