packages/utils/cmdpad/patches/120-kernel26-compat.patch
florian 39a8588d75 Add cmdpad (#2979)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10135 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-01-06 13:44:36 +00:00

16 lines
503 B
Diff

--- 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 ;
}