summaryrefslogtreecommitdiffhomepage
path: root/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat.c b/compat.c
index fb6e70a..7e0c1ac 100644
--- a/compat.c
+++ b/compat.c
@@ -190,7 +190,7 @@ int daemon(int nochdir, int noclose) {
#ifndef HAVE_BASENAME
-char *basename(char *path) {
+char *basename(const char *path) {
char *foo = strrchr(path, '/');
return ++foo;