From 3917a95d9065052eb58cf867a54143fe5c0ca50c Mon Sep 17 00:00:00 2001 From: Ondrej Oprala Date: Mon, 23 Sep 2013 15:39:37 +0200 Subject: hexdump: make addfile() variable names more hinting of their purpose Signed-off-by: Ondrej Oprala --- text-utils/parse.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'text-utils/parse.c') diff --git a/text-utils/parse.c b/text-utils/parse.c index 66200a870..7454fe15d 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); -- cgit v1.2.3-55-g7522