summaryrefslogtreecommitdiffstats
path: root/misc-utils
diff options
context:
space:
mode:
authorKarel Zak2019-02-11 13:30:46 +0100
committerKarel Zak2019-02-11 13:30:46 +0100
commitc8ca29beb2443675f04976dbc213abacb21ee949 (patch)
tree9916253e7129cdaa9f96c3b2b5f161fb7ca0f1b4 /misc-utils
parenthardlink: make code more readable (diff)
downloadkernel-qcow2-util-linux-c8ca29beb2443675f04976dbc213abacb21ee949.tar.gz
kernel-qcow2-util-linux-c8ca29beb2443675f04976dbc213abacb21ee949.tar.xz
kernel-qcow2-util-linux-c8ca29beb2443675f04976dbc213abacb21ee949.zip
hardlink: rename function
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils')
-rw-r--r--misc-utils/hardlink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc-utils/hardlink.c b/misc-utils/hardlink.c
index d6ad1a3a5..3e05ea505 100644
--- a/misc-utils/hardlink.c
+++ b/misc-utils/hardlink.c
@@ -177,7 +177,7 @@ static void growstr(struct hardlink_dynstr *str, size_t newlen)
str->buf = xrealloc(str->buf, str->alloc = add2(newlen, 1));
}
-static void rf(const char *name)
+static void process_path(const char *name)
{
struct stat st, st2, st3;
const size_t namelen = strlen(name);
@@ -466,7 +466,7 @@ int main(int argc, char **argv)
atexit(print_summary);
for (i = optind; i < argc; i++)
- rf(argv[i]);
+ process_path(argv[i]);
while (dirs) {
DIR *dh;
@@ -515,7 +515,7 @@ int main(int argc, char **argv)
memcpy(&nam1.buf[nam1baselen], di->d_name,
add2(subdirlen, 1));
}
- rf(nam1.buf);
+ process_path(nam1.buf);
}
closedir(dh);
}