aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-10-14 09:37:20 -0400
committerChris Michael <cp.michael@samsung.com>2015-10-14 09:37:20 -0400
commita2c1faef70e4e6b01190fee7750a5c9b15b70d5b (patch)
treedff2402f80b652f507d962226453e55ced95641f /src/lib/ecore_drm
parentevas: Fix clang warning for missing field 'async' in default_state (diff)
downloadefl-a2c1faef70e4e6b01190fee7750a5c9b15b70d5b.tar.gz
ecore-drm: Add missing field initializers for vt_mode
Summary: clang reports missing field initializers for usage of vt_mode structure, so add the missing initializers @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/ecore_drm_logind.c4
-rw-r--r--src/lib/ecore_drm/ecore_drm_tty.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_logind.c b/src/lib/ecore_drm/ecore_drm_logind.c
index 1b64d0ae23..833e945d45 100644
--- a/src/lib/ecore_drm/ecore_drm_logind.c
+++ b/src/lib/ecore_drm/ecore_drm_logind.c
@@ -29,7 +29,7 @@ _ecore_drm_logind_vt_setup(Ecore_Drm_Device *dev)
{
struct stat st;
char buff[64];
- struct vt_mode vtmode = { 0 };
+ struct vt_mode vtmode = { 0, 0, SIGUSR1, SIGUSR2, 0 };
snprintf(buff, sizeof(buff), "/dev/tty%d", dev->vt);
buff[sizeof(buff) - 1] = 0;
@@ -260,7 +260,7 @@ _ecore_drm_logind_disconnect(Ecore_Drm_Device *dev)
void
_ecore_drm_logind_restore(Ecore_Drm_Device *dev)
{
- struct vt_mode vtmode = { 0 };
+ struct vt_mode vtmode = { 0, 0, SIGUSR1, SIGUSR2, 0 };
if ((!dev) || (dev->tty.fd < 0)) return;
diff --git a/src/lib/ecore_drm/ecore_drm_tty.c b/src/lib/ecore_drm/ecore_drm_tty.c
index 3c585394cb..40a0019f71 100644
--- a/src/lib/ecore_drm/ecore_drm_tty.c
+++ b/src/lib/ecore_drm/ecore_drm_tty.c
@@ -52,7 +52,7 @@ _ecore_drm_tty_setup(Ecore_Drm_Device *dev)
{
struct stat st;
int kmode;
- struct vt_mode vtmode = { 0 };
+ struct vt_mode vtmode = { 0, 0, SIGUSR1, SIGUSR2, 0 };
if ((fstat(dev->tty.fd, &st) == -1) ||
(major(st.st_rdev) != TTY_MAJOR) || (minor(st.st_rdev) == 0))
@@ -200,7 +200,7 @@ static void
_ecore_drm_tty_restore(Ecore_Drm_Device *dev)
{
int fd = dev->tty.fd;
- struct vt_mode mode = { 0 };
+ struct vt_mode mode = { 0, 0, SIGUSR1, SIGUSR2, 0 };
if (fd < 0) return;