]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1167: fixes in badsymbols.pl
authorMaksim Stsepanenka <mstsepanenka@gmail.com>
Mon, 25 May 2020 13:13:20 +0000 (16:13 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 25 May 2020 21:07:46 +0000 (23:07 +0200)
Closes #5442

tests/badsymbols.pl

index 05d325c3de7172172e2d554200ced871f7339b7b..431e8e4f8daff36f0a9cd44d04249778a84a4c3b 100755 (executable)
@@ -76,7 +76,8 @@ sub scanenums {
                 next;
             }
             # parse this!
-            $skipit = 0,
+            $skipit = 0;
+            next;
         }
         if($skipit) {
             next;
@@ -88,8 +89,7 @@ sub scanenums {
             if(($_ !~ /\}(;|)/) &&
                ($_ ne "typedef") &&
                ($_ ne "enum") &&
-               ($_ !~ /^[ \t]*$/) &&
-               ($_ ne "#")) {
+               ($_ !~ /^[ \t]*$/)) {
                 push @syms, $_;
             }
         }