summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-03-16 19:36:17 -0300
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-04-07 17:17:24 +0930
commit8c7460ee11d9fbdcbdf13f2fa7fb62f26bac92dc (patch)
treed5adc1c250c64912f7de110ea1415f12db91709e
parent865c7bd8013f9882163234cce6cdd4168525815c (diff)
Mandriva patches to xinput.
Change to src/list.c fixes a typo/oversight. Change to configure.ac required to avoid possible error in configure step due to "unquoted" version test. Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
-rw-r--r--configure.ac2
-rw-r--r--src/list.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index d296038..f38914f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,7 +12,7 @@ AC_PROG_CC
AC_PROG_INSTALL
# Checks for pkg-config packages
-PKG_CHECK_MODULES(XINPUT, x11 xext xi inputproto >= 1.4)
+PKG_CHECK_MODULES(XINPUT, x11 xext xi [inputproto >= 1.4])
AC_SUBST(XINPUT_CFLAGS)
AC_SUBST(XINPUT_LIBS)
diff --git a/src/list.c b/src/list.c
index 1bdffed..4004ada 100644
--- a/src/list.c
+++ b/src/list.c
@@ -125,10 +125,10 @@ list(Display *display,
int ret = EXIT_SUCCESS;
for(loop=0; loop<argc; loop++) {
- info = find_device_info(display, argv[0], False);
+ info = find_device_info(display, argv[loop], False);
if (!info) {
- fprintf(stderr, "unable to find device %s\n", argv[0]);
+ fprintf(stderr, "unable to find device %s\n", argv[loop]);
ret = EXIT_FAILURE;
} else {
print_info(info, shortformat);