Mercurial > repos > blastem
diff util.c @ 1523:c416ace65ff1 nuklear_ui
Fix const correctness for path_extension
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 06 Feb 2018 22:44:11 -0800 |
parents | 369da70ee2c2 |
children | 4f6e8acd7b6a |
line wrap: on
line diff
--- a/util.c Tue Feb 06 22:42:16 2018 -0800 +++ b/util.c Tue Feb 06 22:44:11 2018 -0800 @@ -250,11 +250,11 @@ 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 == '.') {