summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2017-07-29 23:31:19 +0300
committerRan Benita <ran234@gmail.com>2017-07-31 15:55:48 +0300
commit2d9640651a791ccfa7d1c78bed790351582e7fd4 (patch)
treea25f88694d03ec8f49c3f1d24146c90a10629205 /test
parent42f800175d9db71cba1b5df00c89b07d5b1cb806 (diff)
downloadxorg-lib-libxkbcommon-2d9640651a791ccfa7d1c78bed790351582e7fd4.tar.gz
test/x11comp: fix compiler warnings
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/x11comp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/x11comp.c b/test/x11comp.c
index 3811e7a..8da2753 100644
--- a/test/x11comp.c
+++ b/test/x11comp.c
@@ -44,10 +44,13 @@ main(void)
char *xkb_path;
char *original, *dump;
char *envp[] = { NULL };
- char *xvfb_argv[] = { "Xvfb", display, NULL };
+ char *xvfb_argv[] = {
+ (char *) "Xvfb", display, NULL
+ };
pid_t xvfb_pid = 0;
- char *xkbcomp_argv[] = { "xkbcomp", "-I", NULL /* xkb_path */, display,
- NULL };
+ char *xkbcomp_argv[] = {
+ (char *) "xkbcomp", (char *) "-I", NULL /* xkb_path */, display, NULL
+ };
pid_t xkbcomp_pid;
char *xhost = NULL;
@@ -77,8 +80,6 @@ main(void)
* is [0, 63].
*/
for (xdpy_candidate = 63; xdpy_candidate >= 0; xdpy_candidate--) {
- char *buf;
-
if (xdpy_candidate == xdpy_current) {
continue;
}