Commit f28f0c19 f28f0c19f8312dfc85c700cb946c3aa6fb82c17f by Sergey Poznyakoff

Add typecasts

1 parent be61f27a
......@@ -582,8 +582,8 @@ var_iterate_end (var_iterator_t *itr)
static int
envp_comp (const void *a, const void *b)
{
const struct mail_env_entry **epa = a;
const struct mail_env_entry **epb = b;
struct mail_env_entry * const *epa = a;
struct mail_env_entry * const *epb = b;
return strcmp ((*epa)->var, (*epb)->var);
}
......@@ -596,7 +596,7 @@ util_printenv (int set)
mu_list_count (environment, &count);
ep = xcalloc (count, sizeof *ep);
mu_list_to_array (environment, ep, count, NULL);
mu_list_to_array (environment, (void**) ep, count, NULL);
qsort (ep, count, sizeof *ep, envp_comp);
for (i = 0; i < count; i++)
{
......
......@@ -113,8 +113,8 @@ mu_registrar_lookup (const char *name, mu_record_t *precord, int flags)
static int
_compare_prio (const void *item, const void *value)
{
const mu_record_t a = item;
const mu_record_t b = value;
const mu_record_t a = (const mu_record_t) item;
const mu_record_t b = (const mu_record_t) value;
if (a->priority > b->priority)
return 0;
return -1;
......