]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hexdump: make addfile() variable names more hinting of their purpose
authorOndrej Oprala <ooprala@redhat.com>
Mon, 23 Sep 2013 13:39:37 +0000 (15:39 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 8 Nov 2013 13:16:04 +0000 (14:16 +0100)
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
text-utils/parse.c

index 66200a870c32e9ac068eb896662d7f6db72e34ef..7454fe15d946e2c63db412b15e52d81bbb7a6f0a 100644 (file)
@@ -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);