triggerhappy: moved to github
[openwrt.org/packages.git] / utils / 120-kernel26-compat.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- cmdpad-0.0.3/src/parse.orig 2008-01-05 23:55:32.000000000 +0100
+++ cmdpad-0.0.3/src/parse.c    2008-01-05 23:56:07.000000000 +0100
@@ -289,6 +289,12 @@
         pchEventDevice = strdup( pchValue) ;
         return 1 ;
       }
+      if( (pchValue != NULL) && 
+          (strncmp( pchValue, "/dev/event", 6) == 0) )
+      {
+        pchEventDevice = strdup( pchValue) ;
+        return 1 ;
+      }
       printf( "Option 'device' expects a /dev/input/eventX argument\n");
       return -1 ;
     }
 
comments