diff options
Diffstat (limited to 'check_const')
-rwxr-xr-x | check_const | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/check_const b/check_const new file mode 100755 index 0000000..c26b566 --- /dev/null +++ b/check_const @@ -0,0 +1,8 @@ +#! /usr/bin/awk -f + +# nfnetlink.h && netlink.h + +{ if (/^(struct nfnl_callback|extern int netlink_dump)/) { check=1 } } +{ if (check == 1 && /(^};|...\);)/) { check=0 } } + +{ if (check == 1 && /const struct nlmsghdr/) { print "const" } } |