summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-05-02 00:03:22 -0700
committerMichael Pavone <pavone@retrodev.com>2018-05-02 00:03:22 -0700
commit7b2501bbfa7caf11303621415aab98fa4c454968 (patch)
treefbd1ed76c046e4dbe15ead0e570a8193781a5039 /util.c
parentc0e175f9d588f1aa5e0049a43d5e37199c2d1a60 (diff)
Fix drag and drop when using Nuklear UI
Diffstat (limited to 'util.c')
-rw-r--r--util.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/util.c b/util.c
index 03f1007..91ee262 100644
--- a/util.c
+++ b/util.c
@@ -303,11 +303,11 @@ char is_absolute_path(char *path)
return is_path_sep(path[0]);
}
-char * basename_no_extension(char *path)
+char * basename_no_extension(const char *path)
{
- char *lastdot = NULL;
- char *lastslash = NULL;
- char *cur;
+ const char *lastdot = NULL;
+ const char *lastslash = NULL;
+ const char *cur;
for (cur = path; *cur; cur++)
{
if (*cur == '.') {
@@ -365,10 +365,10 @@ uint8_t path_matches_extensions(char *path, char **ext_list, uint32_t num_exts)
return 0;
}
-char * path_dirname(char *path)
+char * path_dirname(const char *path)
{
- char *lastslash = NULL;
- char *cur;
+ const char *lastslash = NULL;
+ const char *cur;
for (cur = path; *cur; cur++)
{
if (is_path_sep(*cur)) {