* etags.c (just_read_file): Remove dummy variable and simplify.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Mar 2011 06:54:38 +0000 (23:54 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Mar 2011 06:54:38 +0000 (23:54 -0700)
lib-src/ChangeLog
lib-src/etags.c

index f594efa588c29d9fdfe83c46cfa18156d6290ec6..1c0c506f0e0966f5cf868f3b7a931f9e21cf2154 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * etags.c (just_read_file): Remove dummy variable and simplify.
+
 2011-03-27  Glenn Morris  <rgm@gnu.org>
 
        * emacsclient.c: Replace SIGTYPE with void.
index 6cb321fe75e97cf49df8e0d0ccb3e8d06f752988..a2cdf26abc78654b9ef0d6f1a7dc4c51fa3c13e9 100644 (file)
@@ -3978,10 +3978,8 @@ Yacc_entries (FILE *inf)
 static void
 just_read_file (FILE *inf)
 {
-  register char *dummy;
-
-  LOOP_ON_INPUT_LINES (inf, lb, dummy)
-    continue;
+  while (!feof (inf))
+    readline (&lb, inf);
 }
 
 \f