From 8c422c30830f085a5f721b2be6c874adb05ccea8 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 28 Mar 2011 23:54:38 -0700 Subject: [PATCH] * etags.c (just_read_file): Remove dummy variable and simplify. --- lib-src/ChangeLog | 4 ++++ lib-src/etags.c | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index f594efa588c..1c0c506f0e0 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,7 @@ +2011-03-29 Paul Eggert + + * etags.c (just_read_file): Remove dummy variable and simplify. + 2011-03-27 Glenn Morris * emacsclient.c: Replace SIGTYPE with void. diff --git a/lib-src/etags.c b/lib-src/etags.c index 6cb321fe75e..a2cdf26abc7 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -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); } -- 2.39.5