[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] make compile slightly happier on const-zealous compilers
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