From cbea83b369eb9a9b5198d375e16039036806db64 Mon Sep 17 00:00:00 2001 From: Stargirl-chan Date: Fri, 29 Dec 2023 13:37:08 +0100 Subject: [PATCH] Simplified function comment and follow coding style --- src/util.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/util.c b/src/util.c index 8d7c8f63..26534f8f 100644 --- a/src/util.c +++ b/src/util.c @@ -151,14 +151,9 @@ char *progname(char *arg0) return prognm; } -/** - * basenm - Our custom basename implementation - * @path: The path to parse - * - * Returns either the parsed basename, or - * a copy of the given path -*/ -char *basenm(const char *path) { +/* basename(3) replacement that does not modify its argument */ +char *basenm(const char *path) +{ char *basename; basename = rindex(path, '/');