diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-03-27 22:41:40 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-03-27 22:41:40 +0000 |
commit | 716fc0ac9cffd509e367842a3f33384300b0567b (patch) | |
tree | 2cec99da5c093c0d08c422596a993e98d26dc6fc /sys/kern/makedevops.pl | |
parent | 73cdac043ec54380df2835bb70d1480dbe4db0b7 (diff) | |
download | FreeBSD-src-716fc0ac9cffd509e367842a3f33384300b0567b.zip FreeBSD-src-716fc0ac9cffd509e367842a3f33384300b0567b.tar.gz |
Fixed line counting error.
Diffstat (limited to 'sys/kern/makedevops.pl')
-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 |