[or-cvs] when writing the recommended*versions lines, sort them first.

arma at seul.org arma at seul.org
Mon Sep 12 08:31:49 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	dirserv.c 
Log Message:
when writing the recommended*versions lines, sort them first.
this is because weasel put his out of order and told me the code
should take care of it.


Index: dirserv.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.221
retrieving revision 1.222
diff -u -d -r1.221 -r1.222
--- dirserv.c	12 Sep 2005 06:56:42 -0000	1.221
+++ dirserv.c	12 Sep 2005 08:31:47 -0000	1.222
@@ -568,6 +568,7 @@
     smartlist_split_string(versions, ln->value, ",",
                            SPLIT_SKIP_SPACE|SPLIT_IGNORE_BLANK, 0);
   }
+  smartlist_sort_strings(versions); /* sort them */
   result = smartlist_join_strings(versions,",",0,NULL);
   SMARTLIST_FOREACH(versions,char *,s,tor_free(s));
   smartlist_free(versions);



More information about the tor-commits mailing list