From 9f0e2fc7e8a63c7f22615f119d54433fa966abb0 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 19 Dec 2012 13:58:52 +0000 Subject: [PATCH] Fix some minor formatting in Alex Wu's cpu patch. Signed-off-by: Christopher Michael SVN revision: 81361 --- src/lib/ecore_wayland/ecore_wl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/ecore_wayland/ecore_wl.c b/src/lib/ecore_wayland/ecore_wl.c index 32e9631..8a68510 100644 --- a/src/lib/ecore_wayland/ecore_wl.c +++ b/src/lib/ecore_wayland/ecore_wl.c @@ -414,9 +414,10 @@ _ecore_wl_cb_idle_enterer(void *data) if (!(ewd = data)) return ECORE_CALLBACK_RENEW; ret = wl_display_flush(ewd->wl.display); - if (ret < 0 && errno == EAGAIN) + if ((ret < 0) && (errno == EAGAIN)) { - ecore_main_fd_handler_active_set(ewd->fd_hdl, ECORE_FD_READ | ECORE_FD_WRITE); + ecore_main_fd_handler_active_set(ewd->fd_hdl, + (ECORE_FD_READ | ECORE_FD_WRITE)); } else if (ret < 0) { @@ -447,7 +448,7 @@ _ecore_wl_cb_handle_data(void *data, Ecore_Fd_Handler *hdl) ret = wl_display_flush(ewd->wl.display); if (ret == 0) ecore_main_fd_handler_active_set(hdl, ECORE_FD_READ); - else if (ret == -1 && errno != EAGAIN) + else if ((ret == -1) && (errno != EAGAIN)) { /* FIXME: need do error processing? */ } -- 2.7.4