aboutsummaryrefslogtreecommitdiff
path: root/src/test/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-07-18 10:14:14 -0400
committerNick Mathewson <nickm@torproject.org>2012-07-18 10:14:14 -0400
commitb355ddb20f534d772dcb42737ceb1d0264e2c3f1 (patch)
tree5bf4f320dff8263d2168454207aeb63f85ec962e /src/test/test.c
parent4cac5df5548e0051a6927a778da3e6f01f45dc56 (diff)
parent78dec943074c26747abc7a68cd6aec5269100569 (diff)
downloadtor-b355ddb20f534d772dcb42737ceb1d0264e2c3f1.tar
tor-b355ddb20f534d772dcb42737ceb1d0264e2c3f1.tar.gz
Merge branch 'smartlist_shorten' into maint-0.2.3
Diffstat (limited to 'src/test/test.c')
-rw-r--r--src/test/test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/test.c b/src/test/test.c
index 454fc54d5..6bf2d28d9 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -131,8 +131,7 @@ rm_rf(const char *dir)
elements = tor_listdir(dir);
if (elements) {
- SMARTLIST_FOREACH(elements, const char *, cp,
- {
+ SMARTLIST_FOREACH_BEGIN(elements, const char *, cp) {
char *tmp = NULL;
tor_asprintf(&tmp, "%s"PATH_SEPARATOR"%s", dir, cp);
if (0 == stat(tmp,&st) && (st.st_mode & S_IFDIR)) {
@@ -143,7 +142,7 @@ rm_rf(const char *dir)
}
}
tor_free(tmp);
- });
+ } SMARTLIST_FOREACH_END(cp);
SMARTLIST_FOREACH(elements, char *, cp, tor_free(cp));
smartlist_free(elements);
}