From: Kevin McCarthy Date: Sun, 7 Apr 2019 22:55:16 +0000 (-0700) Subject: Change mutt_folder_hook() parameter to const char *. X-Git-Tag: mutt-1-12-rel~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2a6cad68b4f779ac269c822908b42392662f682;p=mutt Change mutt_folder_hook() parameter to const char *. --- diff --git a/hook.c b/hook.c index 6ea4350c..b9b204f4 100644 --- a/hook.c +++ b/hook.c @@ -431,7 +431,7 @@ int mutt_parse_unhook (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err) return 0; } -void mutt_folder_hook (char *path) +void mutt_folder_hook (const char *path) { HOOK *tmp = Hooks; BUFFER err, token; diff --git a/protos.h b/protos.h index 8080037f..070d8180 100644 --- a/protos.h +++ b/protos.h @@ -210,7 +210,7 @@ void mutt_expand_file_fmt (char *, size_t, const char *, const char *); void mutt_expand_fmt (char *, size_t, const char *, const char *); void mutt_expand_link (char *, const char *, const char *); void mutt_fix_reply_recipients (ENVELOPE *env); -void mutt_folder_hook (char *); +void mutt_folder_hook (const char *); void mutt_format_string (char *, size_t, int, int, int, char, const char *, size_t, int); void mutt_format_s (char *, size_t, const char *, const char *); void mutt_format_s_tree (char *, size_t, const char *, const char *);