]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
nl.pl.in:
authorBrad Knowles <knowles@ntp.org>
Thu, 22 Jan 2004 03:07:41 +0000 (04:07 +0100)
committerBrad Knowles <knowles@ntp.org>
Thu, 22 Jan 2004 03:07:41 +0000 (04:07 +0100)
  Better accounting for possible whitespace at the end of C routines (Bug 210).

bk: 400f3e7dSIQI5_MnsK3ANFwFvnAKkA

ntpdc/nl.pl.in

index 720968978c5b3aab862c87ac398ceaa62f7904f9..813dc1f10df4bd17f2999cc3d018f27e7ce9d14d 100644 (file)
@@ -26,7 +26,7 @@ while (<>) {
            printf "  printf(\"offsetof($field) = %%d\\n\", \n\t (int) offsetof($type, $field));\n";
            next;
        }
-       if (/^} *; *$/) {
+       if (/^}\s*;\s*$/) {
            printf "  printf(\"\\n\");\n\n";
            $found = 0 if $last;
            next;