Refactor, ensure basenm() returns a const char pointer of its arg.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2024-01-06 23:46:17 +01:00
1 parent f29e92be21
commit 791df0c986
4 files changed
+16 -12

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ extern char *prognm;
#endif
char *progname (char *arg0);
char *basenm (const char *path);
const char *basenm (const char *path);
char *str (char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
int fnread (char *buf, size_t len, char *fmt, ...) __attribute__ ((format (printf, 3, 4)));