summaryrefslogtreecommitdiffstats
path: root/check_const
blob: c26b566ed3d3ce2aa51eea6b88ce44cc424eb198 (plain)
1
2
3
4
5
6
7
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" } }