From 366d79b9b95ef7d5c45f342e89fdd2869e11552d Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 31 Jul 2013 22:08:56 +0200 Subject: [PATCH] inpcom.c, cleanup --- src/frontend/inpcom.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 9cfe99ea1..ff36afb60 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -2344,8 +2344,10 @@ inp_remove_excess_ws(struct line *c) static struct line * -expand_section_ref(struct line *c, char *line, char *dir_name) +expand_section_ref(struct line *c, char *dir_name) { + char *line = c->li_line; + char *s, *t, *y; s = skip_non_ws(line); @@ -2444,14 +2446,9 @@ expand_section_ref(struct line *c, char *line, char *dir_name) static void expand_section_references(struct line *c, char *dir_name) { - for (; c; c = c->li_next) { - - char *line = c->li_line; - - if (ciprefix(".lib", line)) { - c = expand_section_ref(c, line, dir_name); - } - } + for (; c; c = c->li_next) + if (ciprefix(".lib", c->li_line)) + c = expand_section_ref(c, dir_name); }