From: Pierre Habouzit Date: Mon, 25 Dec 2006 12:08:43 +0000 (+0100) Subject: fix compilation warnings in hook.c X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=7b8e31d67f90cf7580cd599b5037101080d16677;p=apps%2Fmadmutt.git fix compilation warnings in hook.c Signed-off-by: Pierre Habouzit --- diff --git a/hook.c b/hook.c index 6a72868..6747771 100644 --- a/hook.c +++ b/hook.c @@ -105,7 +105,7 @@ int mutt_parse_hook (BUFFER * buf __attribute__ ((unused)), BUFFER * s, /* check to make sure that a matching hook doesn't already exist */ for (ptr = Hooks; ptr; ptr = ptr->next) { - if (ptr->type == data && + if (ptr->type == (int)data && ptr->rx.not == not && !m_strcmp(pattern.data, ptr->rx.pattern)) { if (data & (M_FOLDERHOOK | M_SENDHOOK | M_SEND2HOOK | M_MESSAGEHOOK | @@ -351,7 +351,7 @@ mutt_addr_hook (char *path, ssize_t pathlen, unsigned long type, CONTEXT * ctx, return -1; } -void mutt_default_save (char *path, ssize_t pathlen, const HEADER * hdr) +void mutt_default_save (char *path, ssize_t pathlen, HEADER * hdr) { *path = 0; if (mutt_addr_hook (path, pathlen, M_SAVEHOOK, Context, hdr) != 0) { diff --git a/protos.h b/protos.h index 0207638..52f9e69 100644 --- a/protos.h +++ b/protos.h @@ -54,7 +54,7 @@ void mutt_add_to_reference_headers (ENVELOPE * env, ENVELOPE * curenv, string_list_t *** pp, string_list_t *** qq); int mutt_bounce_message (FILE * fp, HEADER *, address_t *); void mutt_check_rescore (CONTEXT *); -void mutt_default_save (char *, ssize_t, const HEADER *); +void mutt_default_save (char *, ssize_t, HEADER *); void mutt_display_address (ENVELOPE *); void mutt_edit_content_type (HEADER *, BODY *, FILE *); void mutt_edit_headers (const char *, const char *, HEADER *, char *, ssize_t);