Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6496:406c9a863f26 HEAD
Compiler warning fixes
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 25 Sep 2007 12:56:10 +0300 |
parents | 94501a17dcd0 |
children | 79176ff12ad8 |
files | src/imap/cmd-list.c src/lib-index/mailbox-list-index-sync.c src/lib-otp/otp-hash.c |
diffstat | 3 files changed, 11 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/cmd-list.c Tue Sep 25 12:44:11 2007 +0300 +++ b/src/imap/cmd-list.c Tue Sep 25 12:56:10 2007 +0300 @@ -14,7 +14,7 @@ struct client_command_context *cmd; const char *ref; const char *const *patterns; - enum mailbox_list_flags list_flags; + enum mailbox_list_iter_flags list_flags; enum mailbox_status_items status_items; struct mail_namespace *ns; @@ -91,7 +91,7 @@ static bool parse_select_flags(struct cmd_list_context *ctx, const struct imap_arg *args) { - enum mailbox_list_flags list_flags = 0; + enum mailbox_list_iter_flags list_flags = 0; const char *atom; while (args->type != IMAP_ARG_EOL) { @@ -130,7 +130,7 @@ static bool parse_return_flags(struct cmd_list_context *ctx, const struct imap_arg *args) { - enum mailbox_list_flags list_flags = 0; + enum mailbox_list_iter_flags list_flags = 0; const char *atom; while (args->type != IMAP_ARG_EOL) {
--- a/src/lib-index/mailbox-list-index-sync.c Tue Sep 25 12:44:11 2007 +0300 +++ b/src/lib-index/mailbox-list-index-sync.c Tue Sep 25 12:56:10 2007 +0300 @@ -260,6 +260,7 @@ MODIFY_ADD, rec_flags); mail_index_update_flags(ctx->trans, rec->seq, MODIFY_REMOVE, + (enum mail_flags) MAILBOX_LIST_INDEX_FLAG_NOCHILDREN); } @@ -290,6 +291,7 @@ rec->exists = TRUE; mail_index_update_flags(ctx->trans, rec->seq, MODIFY_REMOVE, + (enum mail_flags) MAILBOX_LIST_INDEX_FLAG_NONEXISTENT); break; } @@ -300,6 +302,7 @@ exists, this flag is removed later. */ mail_index_update_flags(ctx->trans, rec->seq, MODIFY_ADD, + (enum mail_flags) MAILBOX_LIST_INDEX_FLAG_NONEXISTENT); }
--- a/src/lib-otp/otp-hash.c Tue Sep 25 12:44:11 2007 +0300 +++ b/src/lib-otp/otp-hash.c Tue Sep 25 12:56:10 2007 +0300 @@ -79,7 +79,7 @@ } -#define F(name) ((void *) (name)) +#define F(name) ((void (*)()) (name)) static const struct digest digests[] = { { "md4", F(md4_init), F(md4_update), F(md4_final), F(md4_fold) }, @@ -112,7 +112,7 @@ i_assert(algo < N_ELEMENTS(digests)); ctx->digest = digests + algo; - ctx->digest->init((void *) &ctx->ctx); + ctx->digest->init(&ctx->ctx); return 0; } @@ -120,17 +120,17 @@ void digest_update(struct digest_context *ctx, const void *data, const size_t size) { - ctx->digest->update((void *) &ctx->ctx, data, size); + ctx->digest->update(&ctx->ctx, data, size); } void digest_final(struct digest_context *ctx, unsigned char *result) { - ctx->digest->final((void *) &ctx->ctx, result); + ctx->digest->final(&ctx->ctx, result); } void digest_otp_final(struct digest_context *ctx, unsigned char *result) { - ctx->digest->otp_final((void *) &ctx->ctx, result); + ctx->digest->otp_final(&ctx->ctx, result); } void otp_hash(unsigned int algo, const char *seed, const char *passphrase,