devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f7ae5f28d46931d90405400080b8c6ff07f6acaf

commit f7ae5f28d46931d90405400080b8c6ff07f6acaf
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Thu Apr 30 14:29:43 2015 -0400

    ecore-drm: don't return EINA_FALSE as an invalid fd
    
    Summary:
    0 is a valid fd.  EINA_FALSE is 0.  EINA_FALSE is a valid fd.
    
    @fix
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D2456
---
 src/lib/ecore_drm/ecore_drm_logind.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore_drm/ecore_drm_logind.c 
b/src/lib/ecore_drm/ecore_drm_logind.c
index 0a94885..3fd0f20 100644
--- a/src/lib/ecore_drm/ecore_drm_logind.c
+++ b/src/lib/ecore_drm/ecore_drm_logind.c
@@ -291,8 +291,8 @@ _ecore_drm_logind_device_open_no_pending(const char *device)
 {
    struct stat st;
 
-   if (stat(device, &st) < 0) return EINA_FALSE;
-   if (!S_ISCHR(st.st_mode)) return EINA_FALSE;
+   if (stat(device, &st) < 0) return -1;
+   if (!S_ISCHR(st.st_mode)) return -1;
 
    return _ecore_drm_dbus_device_take_no_pending(major(st.st_rdev), 
minor(st.st_rdev), NULL, -1);
 }

-- 


Reply via email to