mirror of
https://github.com/troglobit/finit.git
synced 2026-10-13 10:14:47 +00:00
Better string matching
Signed-off-by: root <root@eviltwin.(none)>
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ THE SOFTWARE.
|
||||
#define blkdev(x,m,maj,min) mknod((x), S_IFBLK|(m), makedev((maj),(min)))
|
||||
|
||||
#define MATCH_CMD(l,c,x) \
|
||||
(((x) = strstr((l), (c))) == (l) && ((x) += strlen((c))))
|
||||
((!strncmp((l), (c), strlen((c)))) && ((x) = (l) + strlen((c))))
|
||||
|
||||
#define LINE_SIZE 1024
|
||||
#define CMD_SIZE 256
|
||||
|
||||
Reference in New Issue
Block a user