]> diplodocus.org Git - xorg-xinput/blobdiff - src/buttonmap.c
xinput 1.6.0
[xorg-xinput] / src / buttonmap.c
index c3dc406f1b86d32c3c8043cd5760de4e82c8da60..3396e7544831ad2465b532513ae993858e210289 100644 (file)
@@ -45,7 +45,7 @@ get_button_map(Display        *display,
     info = find_device_info(display, argv[0], False);
 
     if (!info) {
     info = find_device_info(display, argv[0], False);
 
     if (!info) {
-       fprintf(stderr, "unable to find device %s\n", argv[0]);
+       fprintf(stderr, "unable to find device '%s'\n", argv[0]);
        return EXIT_FAILURE;
     }
 
        return EXIT_FAILURE;
     }
 
@@ -69,7 +69,6 @@ get_button_map(Display        *display,
     if (device) {
        int             idx;
        unsigned char   *map;
     if (device) {
        int             idx;
        unsigned char   *map;
-       int             min;
 
        map = (unsigned char *) malloc(sizeof(unsigned char) * nbuttons);
 
 
        map = (unsigned char *) malloc(sizeof(unsigned char) * nbuttons);
 
@@ -110,7 +109,7 @@ set_button_map(Display      *display,
     info = find_device_info(display, argv[0], False);
 
     if (!info) {
     info = find_device_info(display, argv[0], False);
 
     if (!info) {
-       fprintf(stderr, "unable to find device %s\n", argv[0]);
+       fprintf(stderr, "unable to find device '%s'\n", argv[0]);
        return EXIT_FAILURE;
     }
 
        return EXIT_FAILURE;
     }