]> granicus.if.org Git - neomutt/commitdiff
bool: convert struct member in mutt_regex.h
authorAnton Rieger <seishinryohosha@jikken.de>
Wed, 11 Oct 2017 00:01:51 +0000 (02:01 +0200)
committerRichard Russon <rich@flatcap.org>
Wed, 11 Oct 2017 16:26:51 +0000 (17:26 +0100)
* struct Regex
* restore_default()

init.c
mutt_regex.h

diff --git a/init.c b/init.c
index 28297d6433bd5388087959e7482c1ac1fb6b1708..126971abffab450a3b3f91b677bef68e8db98811 100644 (file)
--- a/init.c
+++ b/init.c
@@ -2153,7 +2153,7 @@ static void restore_default(struct Option *p)
         if ((mutt_strcmp(p->option, "mask") == 0) && *s == '!')
         {
           s++;
-          pp->not = 1;
+          pp->not = true;
         }
         retval = REGCOMP(pp->regex, s, flags);
         if (retval != 0)
index e2e097aa4387b6e6462a391caac6f5fe756d48f3..6ebe22deaf33be34181f0cd183e16c24cf3b146d 100644 (file)
@@ -47,7 +47,7 @@ struct Regex
 {
   char *pattern;  /**< printable version */
   regex_t *regex; /**< compiled expression */
-  int not;        /**< do not match */
+  bool not : 1;   /**< do not match */
 };
 
 /**