Fix recently introduced warnings in session.c

Use of tabs is fixed as well.
This commit is contained in:
Pavel Roskin 2016-04-21 23:03:40 -07:00
parent 0629b25d5f
commit 95e1603f9d

View File

@ -412,7 +412,7 @@ session_start_fork(int width, int height, int bpp, char *username,
int pampid = 0;
int xpid = 0;
int i = 0;
char **xserver; /* absolute/relative path to Xorg/X11rdp/Xvnc */
char *xserver; /* absolute/relative path to Xorg/X11rdp/Xvnc */
char geometry[32];
char depth[32];
char screen[32]; /* display number */
@ -654,7 +654,7 @@ session_start_fork(int width, int height, int bpp, char *username,
xserver_params->auto_free = 1;
/* get path of Xorg from config */
xserver = g_strdup(list_get_item(g_cfg->xorg_params, 0));
xserver = g_strdup((const char *)list_get_item(g_cfg->xorg_params, 0));
list_remove_item(g_cfg->xorg_params, 0);
/* these are the must have parameters */
@ -688,7 +688,7 @@ session_start_fork(int width, int height, int bpp, char *username,
xserver_params->auto_free = 1;
/* get path of Xvnc from config */
xserver = g_strdup(list_get_item(g_cfg->vnc_params, 0));
xserver = g_strdup((const char *)list_get_item(g_cfg->vnc_params, 0));
list_remove_item(g_cfg->vnc_params, 0);
/* these are the must have parameters */
@ -718,7 +718,7 @@ session_start_fork(int width, int height, int bpp, char *username,
xserver_params->auto_free = 1;
/* get path of X11rdp from config */
xserver = g_strdup(list_get_item(g_cfg->rdp_params, 0));
xserver = g_strdup((const char *)list_get_item(g_cfg->rdp_params, 0));
list_remove_item(g_cfg->rdp_params, 0);
/* these are the must have parameters */