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>
This commit is contained in:
Chris Michael 2015-10-14 09:37:20 -04:00
parent 3fb78e137b
commit a2c1faef70
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;