diff options
-rw-r--r-- | library.c | 10 | ||||
-rw-r--r-- | library.h | 6 |
2 files changed, 8 insertions, 8 deletions
@@ -340,7 +340,7 @@ static int clone_vect(struct vect **to, const struct vect **from, void *data) dtor_string, NULL); } -static void dtor_vect(const struct vect **tgt, void *data) +static void dtor_vect(struct vect **tgt, void *data) { VECT_DESTROY(*tgt, const char*, dtor_string, NULL); free(*tgt); @@ -385,7 +385,7 @@ library_exported_names_clone(struct library_exported_names *retp, } int library_exported_names_push(struct library_exported_names *names, - uint64_t addr, const char *name, + uint64_t addr, char *name, int own_name ) { // first, take ownership of the name, if it's not yet ours @@ -428,7 +428,7 @@ int library_exported_names_push(struct library_exported_names *names, else aliases = *paliases; - const char *namedup = strdup(name); + char *namedup = strdup(name); if (namedup == NULL) return -1; @@ -463,7 +463,7 @@ library_exported_names_each_alias_cb(const char **name, void *data) } const char** library_exported_names_each_alias( - const struct library_exported_names *names, + struct library_exported_names *names, const char *aliasname, const char **name_start_after, enum callback_status (*cb)(const char *, @@ -490,7 +490,7 @@ const char** library_exported_names_each_alias( library_exported_names_each_alias_cb, &context); } -int library_exported_names_contains(const struct library_exported_names* names, +int library_exported_names_contains(struct library_exported_names* names, const char* queryname) { uint64_t *addr = DICT_FIND_REF(&names->names, @@ -259,7 +259,7 @@ int arch_translate_address_dyn(struct process *proc, * success */ int library_exported_names_push(struct library_exported_names *names, - uint64_t addr, const char *name, + uint64_t addr, char *name, int own_name ); /* Iterates through the a library's export list, reporting each symbol that is @@ -277,7 +277,7 @@ int library_exported_names_push(struct library_exported_names *names, * function in name_start_after to resume skipping this element */ const char** library_exported_names_each_alias( - const struct library_exported_names *names, + struct library_exported_names *names, const char *aliasname, const char **name_start_after, enum callback_status (*cb)(const char *, @@ -286,7 +286,7 @@ const char** library_exported_names_each_alias( /* Returns 0 if the exported names list does not contain a given name, or 1 if * it does */ -int library_exported_names_contains(const struct library_exported_names* names, +int library_exported_names_contains(struct library_exported_names* names, const char* queryname); #endif /* _LIBRARY_H_ */ |