summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_tty.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-04-24 12:52:40 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-04-24 12:53:01 -0400
commit3a3552ec668dcb7c4e417f407c71cd80af0f89fb (patch)
tree9a4743121b09ff9f9c0df555d7f2a02e13711231 /src/lib/ecore_drm/ecore_drm_tty.c
parent3d71a10891c31de9c667f15f8f37371a5664f759 (diff)
ecore-drm: fix improper conditional syntax in _ecore_drm_tty_switch()
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_tty.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_tty.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_tty.c b/src/lib/ecore_drm/ecore_drm_tty.c
index b21773d019..3c585394cb 100644
--- a/src/lib/ecore_drm/ecore_drm_tty.c
+++ b/src/lib/ecore_drm/ecore_drm_tty.c
@@ -44,9 +44,7 @@ _ecore_drm_tty_cb_vt_signal(void *data, int type EINA_UNUSED, void *event)
44Eina_Bool 44Eina_Bool
45_ecore_drm_tty_switch(Ecore_Drm_Device *dev, int activate_vt) 45_ecore_drm_tty_switch(Ecore_Drm_Device *dev, int activate_vt)
46{ 46{
47 if (!ioctl(dev->tty.fd, VT_ACTIVATE, activate_vt) < 0) 47 return ioctl(dev->tty.fd, VT_ACTIVATE, activate_vt) >= 0;
48 return EINA_FALSE;
49 return EINA_TRUE;
50} 48}
51 49
52static Eina_Bool 50static Eina_Bool