[ltrace-commits] 03/13: renamed _dtor_* and _clone_* functions to remove the leading _
Petr Machata
pmachata-guest at moszumanska.debian.org
Fri Jul 25 11:05:29 UTC 2014
This is an automated email from the git hooks/post-receive script.
pmachata-guest pushed a commit to branch master
in repository ltrace.
commit 78a36b13a6bc525d6573c83856a6efc65caad88a
Author: Dima Kogan <dima at secretsauce.net>
Date: Wed Jun 25 17:22:28 2014 -0700
renamed _dtor_* and _clone_* functions to remove the leading _
---
library.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/library.c b/library.c
index 7ccd7da..35a10d3 100644
--- a/library.c
+++ b/library.c
@@ -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);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git
More information about the ltrace-commits
mailing list