[or-cvs] make compile slightly happier on const-zealous compilers

Nick Mathewson nickm at seul.org
Mon Sep 12 08:29:55 UTC 2005


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

Modified Files:
	container.c 
Log Message:
make compile slightly happier on const-zealous compilers

Index: container.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/container.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- container.c	12 Sep 2005 08:27:01 -0000	1.36
+++ container.c	12 Sep 2005 08:29:53 -0000	1.37
@@ -420,9 +420,9 @@
 }
 
 static int
-_compare_string_ptrs(void **_a, void **_b)
+_compare_string_ptrs(const void **_a, const void **_b)
 {
-  return strcmp((char*)*_a, (char*)*_b);
+  return strcmp((const char*)*_a, (const char*)*_b);
 }
 
 void



More information about the tor-commits mailing list