Skip to content

Commit

Permalink
Change path_get_basename arg to const too
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Nov 15, 2023
1 parent acecac3 commit ecae6c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ecae6c6

Please sign in to comment.