diff options
author | Nikias Bassen | 2023-11-15 13:29:16 +0100 |
---|---|---|
committer | Nikias Bassen | 2023-11-15 13:29:16 +0100 |
commit | ecae6c6e8ca6b6bad080a1c73f10ffd0e67d75a7 (patch) | |
tree | 308deea20641c87fc4e2c5f345a683869a73ec34 /src | |
parent | acecac3cb8b66fddd9dc811c920c6b7dfb969895 (diff) | |
download | idevicerestore-ecae6c6e8ca6b6bad080a1c73f10ffd0e67d75a7.tar.gz idevicerestore-ecae6c6e8ca6b6bad080a1c73f10ffd0e67d75a7.tar.bz2 |
Change path_get_basename arg to const too
Diffstat (limited to 'src')
-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 } |