From: Jozsef Kadlecsik Date: Thu, 25 Jun 2015 08:20:41 +0000 (+0200) Subject: Handle 'extern "C" {' in check_libmap.sh X-Git-Tag: v6.25.1~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2be57618628c15335df07e53e6045b81ef91205b;p=ipset Handle 'extern "C" {' in check_libmap.sh --- diff --git a/check_libmap.sh b/check_libmap.sh index be2a3d3..c8931f9 100755 --- a/check_libmap.sh +++ b/check_libmap.sh @@ -5,7 +5,7 @@ for file in include/libipset/*.h; do esac grep ^extern $file | sed -r -e 's/\(.*//' -e 's/.* \*?//' | egrep -v '\[|\;' done | while read symbol; do - if [ -z "$symbol" ]; then + if [ -z "$symbol" -o "$symbol" = '{' ]; then continue fi if [ -z "`grep \" $symbol\;\" lib/libipset.map`" ]; then