aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/makedevops.pl
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>1999-03-27 22:41:40 +0000
committerNick Hibma <n_hibma@FreeBSD.org>1999-03-27 22:41:40 +0000
commit2bee57be2f5e9c2bb3d00bbaf5c26bf3678ea8dc (patch)
tree0122530d2f73fd3c72704221515b3b6f432fba5d /sys/kern/makedevops.pl
parent9b030d1073af74671ea686bb3b7929a981597da8 (diff)
downloadsrc-2bee57be2f5e9c2bb3d00bbaf5c26bf3678ea8dc.tar.gz
src-2bee57be2f5e9c2bb3d00bbaf5c26bf3678ea8dc.zip
Fixed line counting error.
Notes
Notes: svn path=/head/; revision=45067
Diffstat (limited to 'sys/kern/makedevops.pl')
-rw-r--r--sys/kern/makedevops.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/makedevops.pl b/sys/kern/makedevops.pl
index 24e0b146a3f4..a542dcde994b 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