Commit 89669008 89669008fd50fee7403d896dcdee4506f72b2eea by Sergey Poznyakoff

Fix declaration of mu_sieve_vlist_do in libmu_sieve.

1 parent 1e4c4488
...@@ -187,7 +187,7 @@ int mu_sieve_match_part_checker (const char *name, mu_list_t tags, ...@@ -187,7 +187,7 @@ int mu_sieve_match_part_checker (const char *name, mu_list_t tags,
187 mu_list_t args); 187 mu_list_t args);
188 /* Operations in value lists */ 188 /* Operations in value lists */
189 mu_sieve_value_t *mu_sieve_value_get (mu_list_t vlist, size_t index); 189 mu_sieve_value_t *mu_sieve_value_get (mu_list_t vlist, size_t index);
190 int mu_sieve_vlist_do (mu_sieve_value_t * val, mu_list_action_t * ac, 190 int mu_sieve_vlist_do (mu_sieve_value_t * val, mu_list_action_t ac,
191 void *data); 191 void *data);
192 int mu_sieve_vlist_compare (mu_sieve_value_t * a, mu_sieve_value_t * b, 192 int mu_sieve_vlist_compare (mu_sieve_value_t * a, mu_sieve_value_t * b,
193 mu_sieve_comparator_t comp, 193 mu_sieve_comparator_t comp,
......
...@@ -419,7 +419,7 @@ mu_sieve_tag_lookup (mu_list_t taglist, char *name, mu_sieve_value_t **arg) ...@@ -419,7 +419,7 @@ mu_sieve_tag_lookup (mu_list_t taglist, char *name, mu_sieve_value_t **arg)
419 } 419 }
420 420
421 int 421 int
422 mu_sieve_vlist_do (mu_sieve_value_t *val, mu_list_action_t *ac, void *data) 422 mu_sieve_vlist_do (mu_sieve_value_t *val, mu_list_action_t ac, void *data)
423 { 423 {
424 switch (val->type) 424 switch (val->type)
425 { 425 {
...@@ -428,7 +428,7 @@ mu_sieve_vlist_do (mu_sieve_value_t *val, mu_list_action_t *ac, void *data) ...@@ -428,7 +428,7 @@ mu_sieve_vlist_do (mu_sieve_value_t *val, mu_list_action_t *ac, void *data)
428 return mu_list_foreach (val->v.list, ac, data); 428 return mu_list_foreach (val->v.list, ac, data);
429 429
430 default: 430 default:
431 return -1; 431 return EINVAL;
432 } 432 }
433 } 433 }
434 434
......