Roger Dingledine пре 22 година
родитељ
комит
3465c4dee4
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      src/common/util.c
  2. 1 1
      src/common/util.h

+ 1 - 1
src/common/util.c

@@ -130,7 +130,7 @@ void smartlist_intersect(smartlist_t *sl1, smartlist_t *sl2) {
 }
 }
 
 
 /* remove all elements of sl2 from sl1 */
 /* remove all elements of sl2 from sl1 */
-void smartlist_subtract(smartlist_t *sl1, smartlist *sl2) {
+void smartlist_subtract(smartlist_t *sl1, smartlist_t *sl2) {
   int i;
   int i;
   for(i=0; i < sl2->num_used; i++)
   for(i=0; i < sl2->num_used; i++)
     smartlist_remove(sl1, sl2->list[i]);
     smartlist_remove(sl1, sl2->list[i]);

+ 1 - 1
src/common/util.h

@@ -52,7 +52,7 @@ void smartlist_remove(smartlist_t *sl, void *element);
 int smartlist_isin(smartlist_t *sl, void *element);
 int smartlist_isin(smartlist_t *sl, void *element);
 int smartlist_overlap(smartlist_t *sl1, smartlist_t *sl2);
 int smartlist_overlap(smartlist_t *sl1, smartlist_t *sl2);
 void smartlist_intersect(smartlist_t *sl1, smartlist_t *sl2);
 void smartlist_intersect(smartlist_t *sl1, smartlist_t *sl2);
-void smartlist_subtract(smartlist_t *sl1, smartlist *sl2);
+void smartlist_subtract(smartlist_t *sl1, smartlist_t *sl2);
 void *smartlist_choose(smartlist_t *sl);
 void *smartlist_choose(smartlist_t *sl);
 
 
 const char *eat_whitespace(const char *s);
 const char *eat_whitespace(const char *s);