summaryrefslogtreecommitdiff
path: root/check_const
blob: 61b9f315c45a7164685dc6abb2c4e3e26b620c48 (plain)
1
2
3
4
5
6
7
8
#! /usr/bin/awk -f

# include/linux/nfnetlink.h: nfnl_callback
# include/linux/netlink.h: netlink_dump_start
{ if (/^(struct nfnl_callback|extern int netlink_dump)/) { check=1 } }
{ if (check == 1 && /(^};|...\);)/) { check=0 } }

{ if (check == 1 && /const struct nlmsghdr/) { print "const" } }