summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-02-06 22:44:11 -0800
committerMichael Pavone <pavone@retrodev.com>2018-02-06 22:44:11 -0800
commit60e74d48cd8c59f412128d98908f2b04b2b07586 (patch)
tree0e4120d0cb24e2c5dced5757ae07b63894a35cee /util.c
parentd728432b713702b6a564e3532930e380dd5d3f28 (diff)
Fix const correctness for path_extension
--HG-- branch : nuklear_ui
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util.c b/util.c
index 96840e5..5d2925e 100644
--- a/util.c
+++ b/util.c
@@ -250,11 +250,11 @@ char * basename_no_extension(char *path)
return barename;
}
-char *path_extension(char *path)
+char *path_extension(char const *path)
{
- char *lastdot = NULL;
- char *lastslash = NULL;
- char *cur;
+ char const *lastdot = NULL;
+ char const *lastslash = NULL;
+ char const *cur;
for (cur = path; *cur; cur++)
{
if (*cur == '.') {