]> granicus.if.org Git - ipset/commitdiff
Handle 'extern "C" {' in check_libmap.sh
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 25 Jun 2015 08:20:41 +0000 (10:20 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 25 Jun 2015 08:20:41 +0000 (10:20 +0200)
check_libmap.sh

index be2a3d3bdf5a2f50b5ddc302959f3b6e0e3125f7..c8931f907bede497cad3c037e16487905931df67 100755 (executable)
@@ -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