aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-01-11 13:15:52 -0500
committerNick Mathewson <nickm@torproject.org>2012-01-16 15:01:54 -0500
commit9c6d913b9e1b84ffcefb2cbd9cfe6f7bd15fc9b3 (patch)
tree059f62a882164b2cb1f6a1244a512136c882add1 /src/common/util.c
parent79bb44c219af8f88573fb33954e5d2e16ef8fe42 (diff)
downloadtor-9c6d913b9e1b84ffcefb2cbd9cfe6f7bd15fc9b3.tar
tor-9c6d913b9e1b84ffcefb2cbd9cfe6f7bd15fc9b3.tar.gz
Rename smartlist_{v,}asprintf_add to smartlist_add_{v,}asprintf
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 22c816abc..a4a7006ad 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2757,17 +2757,17 @@ tor_sscanf(const char *buf, const char *pattern, ...)
/** Append the string produced by tor_asprintf(<b>pattern</b>, <b>...</b>)
* to <b>sl</b>. */
void
-smartlist_asprintf_add(struct smartlist_t *sl, const char *pattern, ...)
+smartlist_add_asprintf(struct smartlist_t *sl, const char *pattern, ...)
{
va_list ap;
va_start(ap, pattern);
- smartlist_vasprintf_add(sl, pattern, ap);
+ smartlist_add_vasprintf(sl, pattern, ap);
va_end(ap);
}
-/** va_list-based backend of smartlist_asprintf_add. */
+/** va_list-based backend of smartlist_add_asprintf. */
void
-smartlist_vasprintf_add(struct smartlist_t *sl, const char *pattern,
+smartlist_add_vasprintf(struct smartlist_t *sl, const char *pattern,
va_list args)
{
char *str = NULL;