summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-11-12 11:32:50 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-11-12 11:32:50 +0000
commitf28f0c19f8312dfc85c700cb946c3aa6fb82c17f (patch)
tree3afccd48f15b5fc49741909b8ebecbd3c2ccddc7
parentbe61f27a31c8a54bb2de08f6fd9fd5391678f515 (diff)
downloadmailutils-f28f0c19f8312dfc85c700cb946c3aa6fb82c17f.tar.gz
mailutils-f28f0c19f8312dfc85c700cb946c3aa6fb82c17f.tar.bz2
Add typecasts
-rw-r--r--mail/util.c6
-rw-r--r--mailbox/registrar.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/mail/util.c b/mail/util.c
index 904a4d1d1..3f4b3220f 100644
--- a/mail/util.c
+++ b/mail/util.c
@@ -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++)
{
diff --git a/mailbox/registrar.c b/mailbox/registrar.c
index 144dad8d6..fca61ae14 100644
--- a/mailbox/registrar.c
+++ b/mailbox/registrar.c
@@ -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;

Return to:

Send suggestions and report system problems to the System administrator.