summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string/gnu_basename.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/gnu_basename.c')
-rw-r--r--newlib/libc/string/gnu_basename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/string/gnu_basename.c b/newlib/libc/string/gnu_basename.c
index 46b92d0fd..90e22ccdf 100644
--- a/newlib/libc/string/gnu_basename.c
+++ b/newlib/libc/string/gnu_basename.c
@@ -20,7 +20,7 @@ _DEFUN (__gnu_basename, (path),
char *p;
if ((p = strrchr (path, '/')))
return p + 1;
- return path;
+ return (char *) path;
}
#endif /* !_NO_BASENAME */