summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-10 18:46:46 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-10 18:46:49 +0200
commit25f9f082aa234c96290d3925b4d8a01c54ba1ed4 (patch)
treece3c132716b7a768a4f56571cb17587ddcc3209e /bin
parent4d4592ae20e030a12764e99a8fe169d9c43e17f5 (diff)
grepc: grepc_linux_syscall_def: Improve readability of regex
This improves the readability of the regex, and also the robustness, at the cost of just a few ms. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/grepc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/grepc b/bin/grepc
index bd7b823..b1b8b06 100755
--- a/bin/grepc
+++ b/bin/grepc
@@ -101,7 +101,7 @@ function grepc_linux_syscall_def()
grepc_helper \
"SYSCALL_DEFINE.\($1\b" \
'.' \
- "(?s)^\w*SYSCALL_DEFINE.\($1\b.*?^}";
+ "(?s)^(COMPAT_)?SYSCALL_DEFINE.\($1\b.*?^}";
}