From: Ondrej Oprala Date: Mon, 23 Sep 2013 13:39:37 +0000 (+0200) Subject: hexdump: make addfile() variable names more hinting of their purpose X-Git-Tag: v2.25-rc1~747 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3917a95d9065052eb58cf867a54143fe5c0ca50c;p=thirdparty%2Futil-linux.git hexdump: make addfile() variable names more hinting of their purpose Signed-off-by: Ondrej Oprala --- diff --git a/text-utils/parse.c b/text-utils/parse.c index 66200a870c..7454fe15d9 100644 --- a/text-utils/parse.c +++ b/text-utils/parse.c @@ -58,7 +58,7 @@ FU *endfu; /* format at end-of-data */ void addfile(char *name) { - char *p, *buf = NULL; + char *fmt, *buf = NULL; FILE *fp; size_t n; @@ -66,14 +66,14 @@ void addfile(char *name) err(EXIT_FAILURE, _("can't read %s"), name); while (getline(&buf, &n, fp) != -1) { - p = buf; + fmt = buf; - while (*p && isspace(*p)) - ++p; - if (!*p || *p == '#') + while (*fmt && isspace(*fmt)) + ++fmt; + if (!*fmt || *fmt == '#') continue; - add(p); + add(fmt); } free(buf);