summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-19 18:56:28 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-19 18:56:28 +0000
commitb0a18d1bfa90f41bb03d5843baeab3b3f1207a2c (patch)
tree54ed8679ef1cc2ff9e776356c1f14441b1094170 /src/or/routerparse.c
parent6ca4eebb57ef0b893240f8256a6364be5036804d (diff)
downloadtor-b0a18d1bfa90f41bb03d5843baeab3b3f1207a2c.tar.gz
tor-b0a18d1bfa90f41bb03d5843baeab3b3f1207a2c.zip
r15967@catbus: nickm | 2007-10-19 14:14:47 -0400
Change meaning of "freefn" argument to smartlist_uniq so that we can remove duplicates from a list without freeing them. svn:r12053
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 119345b1dd..c634ade44d 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -3119,6 +3119,6 @@ sort_version_list(smartlist_t *versions, int remove_duplicates)
smartlist_sort(versions, _compare_tor_version_str_ptr);
if (remove_duplicates)
- smartlist_uniq(versions, _compare_tor_version_str_ptr, NULL);
+ smartlist_uniq(versions, _compare_tor_version_str_ptr, _tor_free);
}