* grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.

This commit is contained in:
Vladimir Serbinenko committed 2013-12-16 13:02:19 +01:00
1 parent 80b865bdc8
commit 6a09d83e12
2 files changed
+8 -6

No files matched your search

+4
View File
@@ -1,3 +1,7 @@
2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
2013-12-15 Ian Campbell <ijc@hellion.org.uk> 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
* grub-core/kern/uboot/init.c: Fix units of uboot timer. * grub-core/kern/uboot/init.c: Fix units of uboot timer.
+4 -6
View File
@@ -14,9 +14,9 @@
# Read symbols' info from stdin. # Read symbols' info from stdin.
BEGIN { BEGIN {
error = 0 error = 0
lineno = 0; }
while (getline <"/dev/stdin") {
lineno++; {
if ($1 == "defined") { if ($1 == "defined") {
symtab[$3] = $2; symtab[$3] = $2;
modtab[$2] = "" modtab[$2] modtab[$2] = "" modtab[$2]
@@ -29,10 +29,8 @@ BEGIN {
} }
} }
else { else {
printf "error: %u: unrecognized input format\n", lineno; printf "error: %u: unrecognized input format\n", NR;
error++; error++;
break;
}
} }
} }