From a2c1faef70e4e6b01190fee7750a5c9b15b70d5b Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 14 Oct 2015 09:37:20 -0400 Subject: [PATCH] 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 --- src/lib/ecore_drm/ecore_drm_logind.c | 4 ++-- src/lib/ecore_drm/ecore_drm_tty.c | 4 ++-- 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 1b64d0a..833e945 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 3c58539..40a0019 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; -- 2.7.4