Commit f28f0c19 f28f0c19f8312dfc85c700cb946c3aa6fb82c17f by Sergey Poznyakoff

Add typecasts

1 parent be61f27a
...@@ -582,8 +582,8 @@ var_iterate_end (var_iterator_t *itr) ...@@ -582,8 +582,8 @@ var_iterate_end (var_iterator_t *itr)
582 static int 582 static int
583 envp_comp (const void *a, const void *b) 583 envp_comp (const void *a, const void *b)
584 { 584 {
585 const struct mail_env_entry **epa = a; 585 struct mail_env_entry * const *epa = a;
586 const struct mail_env_entry **epb = b; 586 struct mail_env_entry * const *epb = b;
587 587
588 return strcmp ((*epa)->var, (*epb)->var); 588 return strcmp ((*epa)->var, (*epb)->var);
589 } 589 }
...@@ -596,7 +596,7 @@ util_printenv (int set) ...@@ -596,7 +596,7 @@ util_printenv (int set)
596 596
597 mu_list_count (environment, &count); 597 mu_list_count (environment, &count);
598 ep = xcalloc (count, sizeof *ep); 598 ep = xcalloc (count, sizeof *ep);
599 mu_list_to_array (environment, ep, count, NULL); 599 mu_list_to_array (environment, (void**) ep, count, NULL);
600 qsort (ep, count, sizeof *ep, envp_comp); 600 qsort (ep, count, sizeof *ep, envp_comp);
601 for (i = 0; i < count; i++) 601 for (i = 0; i < count; i++)
602 { 602 {
......
...@@ -113,8 +113,8 @@ mu_registrar_lookup (const char *name, mu_record_t *precord, int flags) ...@@ -113,8 +113,8 @@ mu_registrar_lookup (const char *name, mu_record_t *precord, int flags)
113 static int 113 static int
114 _compare_prio (const void *item, const void *value) 114 _compare_prio (const void *item, const void *value)
115 { 115 {
116 const mu_record_t a = item; 116 const mu_record_t a = (const mu_record_t) item;
117 const mu_record_t b = value; 117 const mu_record_t b = (const mu_record_t) value;
118 if (a->priority > b->priority) 118 if (a->priority > b->priority)
119 return 0; 119 return 0;
120 return -1; 120 return -1;
......