summaryrefslogtreecommitdiff
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
parent3fb78e137b74181ebc011fe5d6a1d167f2e63c52 (diff)
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>
-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)
29{ 29{
30 struct stat st; 30 struct stat st;
31 char buff[64]; 31 char buff[64];
32 struct vt_mode vtmode = { 0 }; 32 struct vt_mode vtmode = { 0, 0, SIGUSR1, SIGUSR2, 0 };
33 33
34 snprintf(buff, sizeof(buff), "/dev/tty%d", dev->vt); 34 snprintf(buff, sizeof(buff), "/dev/tty%d", dev->vt);
35 buff[sizeof(buff) - 1] = 0; 35 buff[sizeof(buff) - 1] = 0;
@@ -260,7 +260,7 @@ _ecore_drm_logind_disconnect(Ecore_Drm_Device *dev)
260void 260void
261_ecore_drm_logind_restore(Ecore_Drm_Device *dev) 261_ecore_drm_logind_restore(Ecore_Drm_Device *dev)
262{ 262{
263 struct vt_mode vtmode = { 0 }; 263 struct vt_mode vtmode = { 0, 0, SIGUSR1, SIGUSR2, 0 };
264 264
265 if ((!dev) || (dev->tty.fd < 0)) return; 265 if ((!dev) || (dev->tty.fd < 0)) return;
266 266
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)
52{ 52{
53 struct stat st; 53 struct stat st;
54 int kmode; 54 int kmode;
55 struct vt_mode vtmode = { 0 }; 55 struct vt_mode vtmode = { 0, 0, SIGUSR1, SIGUSR2, 0 };
56 56
57 if ((fstat(dev->tty.fd, &st) == -1) || 57 if ((fstat(dev->tty.fd, &st) == -1) ||
58 (major(st.st_rdev) != TTY_MAJOR) || (minor(st.st_rdev) == 0)) 58 (major(st.st_rdev) != TTY_MAJOR) || (minor(st.st_rdev) == 0))
@@ -200,7 +200,7 @@ static void
200_ecore_drm_tty_restore(Ecore_Drm_Device *dev) 200_ecore_drm_tty_restore(Ecore_Drm_Device *dev)
201{ 201{
202 int fd = dev->tty.fd; 202 int fd = dev->tty.fd;
203 struct vt_mode mode = { 0 }; 203 struct vt_mode mode = { 0, 0, SIGUSR1, SIGUSR2, 0 };
204 204
205 if (fd < 0) return; 205 if (fd < 0) return;
206 206