diff options
-rw-r--r-- | sys/kern/makedevops.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/makedevops.pl b/sys/kern/makedevops.pl index 24e0b14..a542dcd 100644 --- a/sys/kern/makedevops.pl +++ b/sys/kern/makedevops.pl @@ -262,7 +262,9 @@ foreach $src ( @filenames ) { $methods{$name} = 'VIS'; - while ( $line !~ m/}/ and $line .= <SRC> ) { } + while ( $line !~ m/}/ and $line .= <SRC> ) { + $lineno++ + } if ( $line !~ s/};?(.*)// ) { # remove first '}' and trailing garbage # The '}' was not there (the rest is optional), so complain |