summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorGravatar tihmstar2023-11-15 00:45:53 +0100
committerGravatar Nikias Bassen2023-11-15 00:45:53 +0100
commitacecac3cb8b66fddd9dc811c920c6b7dfb969895 (patch)
tree7cf83250bdf17ea293187460a6d7524edfacef7e /src/common.h
parent83600e92240cd2538cd82f90ed03601731b1b0d9 (diff)
downloadidevicerestore-acecac3cb8b66fddd9dc811c920c6b7dfb969895.tar.gz
idevicerestore-acecac3cb8b66fddd9dc811c920c6b7dfb969895.tar.bz2
Change path_get_basename()'s return type to const char*
This makes it clear that the return value is immutable and moreover suggests that the return vale is not allocated and thus should be treated carefully.
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index f7b1dcd..974d505 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);
-char* path_get_basename(char* path);
+const char* path_get_basename(char* path);
#ifdef __cplusplus
}