summaryrefslogtreecommitdiffstats
path: root/text-utils/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-utils/parse.c')
-rw-r--r--text-utils/parse.c12
1 files changed, 6 insertions, 6 deletions
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);