[or-cvs] Oops. _compare_tor_version_str_ptr wants ptr-to-ptr. Ow.

Nick Mathewson nickm at seul.org
Mon Apr 10 07:40:41 UTC 2006


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv28147/src/or

Modified Files:
	routerparse.c 
Log Message:
Oops. _compare_tor_version_str_ptr wants ptr-to-ptr. Ow.

Index: routerparse.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerparse.c,v
retrieving revision 1.181
retrieving revision 1.182
diff -u -p -d -r1.181 -r1.182
--- routerparse.c	3 Apr 2006 06:30:48 -0000	1.181
+++ routerparse.c	10 Apr 2006 07:40:39 -0000	1.182
@@ -1935,12 +1935,12 @@ sort_version_list(smartlist_t *versions,
     return;
 
   for (i = 1; i < smartlist_len(versions); ++i) {
-    void *a, *b;
+    char *a, *b;
     a = smartlist_get(versions, i-1);
     b = smartlist_get(versions, i);
     /* use version_cmp so we catch multiple representations of the same
      * version */
-    if (_compare_tor_version_str_ptr(a,b) == 0) {
+    if (_compare_tor_version_str_ptr(&a,&b) == 0) {
       tor_free(smartlist_get(versions, i));
       smartlist_del_keeporder(versions, i--);
     }



More information about the tor-commits mailing list