ecore-drm: fix passing wrong argument to open().
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 10 Dec 2014 13:04:32 +0000 (08:04 -0500)
committerChris Michael <cp.michael@samsung.com>
Wed, 10 Dec 2014 13:04:38 +0000 (08:04 -0500)
Summary: remove unintended argument.

@fix

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1765

src/lib/ecore_drm/ecore_drm_launcher.c

index 74ec59d..dbe7303 100644 (file)
@@ -112,7 +112,7 @@ _ecore_drm_launcher_device_open_no_pending(const char *device, int flags)
      }
    else
      {
-        fd = open(device, flags, flags | O_CLOEXEC);
+        fd = open(device, flags | O_CLOEXEC);
         if (fd < 0) return fd;
         if (fstat(fd, &s) == -1)
           {