From 12cbdab065eb419d193c623c65eb441321eeecee Mon Sep 17 00:00:00 2001
From: Richard Russon <rich@flatcap.org>
Date: Mon, 28 May 2018 19:45:04 +0100
Subject: [PATCH] bool param

---
 hook.c    | 2 +-
 muttlib.c | 4 ++--
 protos.h  | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/hook.c b/hook.c
index d7a46bd1d..1d904078c 100644
--- a/hook.c
+++ b/hook.c
@@ -136,7 +136,7 @@ int mutt_parse_hook(struct Buffer *buf, struct Buffer *s, unsigned long data,
     }
 
     mutt_str_strfcpy(path, pattern.data, sizeof(path));
-    mutt_expand_path_regex(path, sizeof(path), 1);
+    mutt_expand_path_regex(path, sizeof(path), true);
 
     /* Check for other mailbox shortcuts that expand to the empty string.
      * This is likely a mistake too */
diff --git a/muttlib.c b/muttlib.c
index 7c91f2a0a..fe6847ac1 100644
--- a/muttlib.c
+++ b/muttlib.c
@@ -120,10 +120,10 @@ bool mutt_matches_ignore(const char *s)
 
 char *mutt_expand_path(char *s, size_t slen)
 {
-  return mutt_expand_path_regex(s, slen, 0);
+  return mutt_expand_path_regex(s, slen, false);
 }
 
-char *mutt_expand_path_regex(char *s, size_t slen, int regex)
+char *mutt_expand_path_regex(char *s, size_t slen, bool regex)
 {
   char p[_POSIX_PATH_MAX] = "";
   char q[_POSIX_PATH_MAX] = "";
diff --git a/protos.h b/protos.h
index a85e33d56..1651d4b6b 100644
--- a/protos.h
+++ b/protos.h
@@ -126,7 +126,7 @@ const char *attach_format_str(char *buf, size_t buflen, size_t col, int cols,
                             unsigned long data, enum FormatFlag flags);
 
 char *mutt_expand_path(char *s, size_t slen);
-char *mutt_expand_path_regex(char *s, size_t slen, int regex);
+char *mutt_expand_path_regex(char *s, size_t slen, bool regex);
 char *mutt_find_hook(int type, const char *pat);
 char *mutt_gecos_name(char *dest, size_t destlen, struct passwd *pw);
 char *mutt_get_body_charset(char *d, size_t dlen, struct Body *b);
-- 
2.40.0