summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-04-30 14:29:43 -0400
committerChris Michael <cp.michael@samsung.com>2015-04-30 14:29:51 -0400
commitf7ae5f28d46931d90405400080b8c6ff07f6acaf (patch)
tree6b0b662bb81fb1040fc3ce4d76e75351400a7c81 /src
parentc5a21aaf844195ebbc6f39bce9c7f501bdedece9 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_drm/ecore_drm_logind.c4
1 files 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 0a94885052..3fd0f20593 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)
291{ 291{
292 struct stat st; 292 struct stat st;
293 293
294 if (stat(device, &st) < 0) return EINA_FALSE; 294 if (stat(device, &st) < 0) return -1;
295 if (!S_ISCHR(st.st_mode)) return EINA_FALSE; 295 if (!S_ISCHR(st.st_mode)) return -1;
296 296
297 return _ecore_drm_dbus_device_take_no_pending(major(st.st_rdev), minor(st.st_rdev), NULL, -1); 297 return _ecore_drm_dbus_device_take_no_pending(major(st.st_rdev), minor(st.st_rdev), NULL, -1);
298} 298}