ソースを参照

make compile slightly happier on const-zealous compilers

svn:r5015
Nick Mathewson 20 年 前
コミット
c1a6940e73
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/common/container.c

+ 2 - 2
src/common/container.c

@@ -420,9 +420,9 @@ smartlist_bsearch(smartlist_t *sl, const void *key,
 }
 
 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