From ecae6c6e8ca6b6bad080a1c73f10ffd0e67d75a7 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 15 Nov 2023 13:29:16 +0100 Subject: Change path_get_basename arg to const too --- src/common.c | 2 +- src/common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 } -- cgit v1.1-32-gdbae