X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=hook.c;h=e763f1412bf8b5a31a518a5306469a9dbea587ca;hp=734793966d0e4fa6b13913bb3b90e050245164e7;hb=22601f25ede6703ba7cd06ee84eddd2045308570;hpb=4761fa78a6dfc9437caa6e6e0aac806e50e01c83 diff --git a/hook.c b/hook.c index 7347939..e763f14 100644 --- a/hook.c +++ b/hook.c @@ -33,7 +33,7 @@ #define ERROR_STOP 0 typedef struct hook { - unsigned long type; /* hook type */ + int type; /* hook type */ rx_t rx; /* regular expression */ char *command; /* filename, command or pattern to execute */ pattern_t *pattern; /* used for fcc,save,send-hook */ @@ -301,7 +301,7 @@ void mutt_folder_hook (char *path) current_hook_type = 0; } -char *mutt_find_hook (unsigned long type, const char *pat) +char *mutt_find_hook (int type, const char *pat) { HOOK *tmp = Hooks; @@ -313,7 +313,7 @@ char *mutt_find_hook (unsigned long type, const char *pat) return (NULL); } -void mutt_message_hook (CONTEXT * ctx, HEADER * hdr, unsigned long type) +void mutt_message_hook (CONTEXT * ctx, HEADER * hdr, int type) { BUFFER err, token; HOOK *hook;