diff options
author | Dima Kogan <dima@secretsauce.net> | 2014-06-25 17:22:28 -0700 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-08-22 20:38:26 +0900 |
commit | 9e766f94c23be55a5a37693e2c3222a84f1f1f17 (patch) | |
tree | d12ae6876346d10f2486ed85ceab504ddc57c75a | |
parent | c01119876e7d43261f8dbf203a5a0d267fcbc2d9 (diff) | |
download | ltrace-9e766f94c23be55a5a37693e2c3222a84f1f1f17.tar.gz ltrace-9e766f94c23be55a5a37693e2c3222a84f1f1f17.tar.bz2 ltrace-9e766f94c23be55a5a37693e2c3222a84f1f1f17.zip |
renamed _dtor_* and _clone_* functions to remove the leading _
-rw-r--r-- | library.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -324,11 +324,11 @@ library_init(struct library *lib, enum library_type type) -static void _dtor_string(const char **tgt, void *data) +static void dtor_string(const char **tgt, void *data) { free((char*)*tgt); } -static int _clone_vect(struct vect **to, const struct vect **from, void *data) +static int clone_vect(struct vect **to, const struct vect **from, void *data) { *to = malloc(sizeof(struct vect)); if(*to == NULL) @@ -337,12 +337,12 @@ static int _clone_vect(struct vect **to, const struct vect **from, void *data) return VECT_CLONE(*to, *from, const char*, dict_clone_string, - _dtor_string, + dtor_string, NULL); } -static void _dtor_vect(const struct vect **tgt, void *data) +static void dtor_vect(const struct vect **tgt, void *data) { - VECT_DESTROY(*tgt, const char*, _dtor_string, NULL); + VECT_DESTROY(*tgt, const char*, dtor_string, NULL); free(*tgt); } @@ -362,10 +362,10 @@ library_exported_names_destroy(struct library_exported_names *names) { DICT_DESTROY(&names->names, const char*, uint64_t, - _dtor_string, NULL, NULL); + dtor_string, NULL, NULL); DICT_DESTROY(&names->addrs, uint64_t, struct vect*, - NULL, _dtor_vect, NULL); + NULL, dtor_vect, NULL); } static int @@ -375,13 +375,13 @@ library_exported_names_clone(struct library_exported_names *retp, return DICT_CLONE(&retp->names, &names->names, const char*, uint64_t, - dict_clone_string, _dtor_string, + dict_clone_string, dtor_string, NULL, NULL, NULL) || DICT_CLONE(&retp->addrs, &names->addrs, uint64_t, struct vect*, NULL, NULL, - _clone_vect, _dtor_vect, + clone_vect, dtor_vect, NULL); } |