]> git.scottworley.com Git - keystroke-timestamps/commitdiff
Use a glob as the default --device: *kbd*
authorScott Worley <scottworley@scottworley.com>
Thu, 26 Dec 2013 09:03:53 +0000 (01:03 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 26 Dec 2013 09:06:08 +0000 (01:06 -0800)
keystroke-timestamps.c

index 976e37b1a1b1a86fc538d0202a6407e1d6122685..36d1cfcd1a24390e128c4627ffabf5c0f95d18ba 100644 (file)
@@ -13,7 +13,7 @@
 int main (int argc, char **argv)
 {
   int print_usec = 0;
 int main (int argc, char **argv)
 {
   int print_usec = 0;
-  char* device = strdup("/dev/input/by-path/platform-i8042-serio-0-event-kbd");
+  char* device = strdup("/dev/input/by-path/*kbd*");
   struct option long_options[] = {
     {"device", required_argument, 0,            'd' },
     {"usec",   no_argument,       &print_usec,  1   },
   struct option long_options[] = {
     {"device", required_argument, 0,            'd' },
     {"usec",   no_argument,       &print_usec,  1   },