diff options
-rw-r--r-- | src/common.c | 2 | ||||
-rw-r--r-- | src/common.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common.c b/src/common.c index c3c9d68..9a73994 100644 --- a/src/common.c +++ b/src/common.c @@ -696,7 +696,7 @@ int _plist_dict_copy_item(plist_t target_dict, plist_t source_dict, const char * return 0; } -const char* path_get_basename(char* path) +const char* path_get_basename(const char* path) { #ifdef WIN32 const char *p = path + strlen(path); diff --git a/src/common.h b/src/common.h index 974d505..493b1df 100644 --- a/src/common.h +++ b/src/common.h @@ -197,7 +197,7 @@ int _plist_dict_copy_data(plist_t target_dict, plist_t source_dict, const char * int _plist_dict_copy_string(plist_t target_dict, plist_t source_dict, const char *key, const char *alt_source_key); int _plist_dict_copy_item(plist_t target_dict, plist_t source_dict, const char *key, const char *alt_source_key); -const char* path_get_basename(char* path); +const char* path_get_basename(const char* path); #ifdef __cplusplus } |