Commit d6465c5b authored by Kristian Høgsberg's avatar Kristian Høgsberg
Browse files

Fix WL_EVENT_WRITEABLE typo

parent c1b9203e
......@@ -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;
......
......@@ -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);
}
......
......@@ -33,7 +33,7 @@ extern "C" {
enum {
WL_EVENT_READABLE = 0x01,
WL_EVENT_WRITEABLE = 0x02
WL_EVENT_WRITABLE = 0x02
};
struct wl_event_loop;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment