]> granicus.if.org Git - neomutt/commitdiff
boolify do_locales
authorRichard Russon <rich@flatcap.org>
Sat, 16 Feb 2019 12:44:13 +0000 (12:44 +0000)
committerRichard Russon <rich@flatcap.org>
Sat, 16 Feb 2019 14:53:12 +0000 (14:53 +0000)
browser.c
ncrypt/crypt_gpgme.c
ncrypt/pgpkey.c

index 806d276370f2135147fe420f85c6af2b9ed64dfe..d7b6714953ecf74cd5c1005220e038b5bfca2cc3 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -378,7 +378,7 @@ static const char *folder_format_str(char *buf, size_t buflen, size_t col, int c
     case 'D':
       if (folder->ff->local)
       {
-        int do_locales = true;
+        bool do_locales = true;
 
         if (op == 'D')
         {
index 8fbf4f7d14c9e1488049389f4e85953832d623f1..f04a97ca3ab9c15835a640ead28194fc1d872452 100644 (file)
@@ -3438,7 +3438,7 @@ static const char *crypt_format_str(char *buf, size_t buflen, size_t col, int co
     case '[':
     {
       char buf2[SHORT_STRING];
-      int do_locales;
+      bool do_locales = true;
       struct tm *tm = NULL;
       size_t len;
 
@@ -3447,11 +3447,9 @@ static const char *crypt_format_str(char *buf, size_t buflen, size_t col, int co
       const char *cp = src;
       if (*cp == '!')
       {
-        do_locales = 0;
+        do_locales = false;
         cp++;
       }
-      else
-        do_locales = 1;
 
       len = buflen - 1;
       while (len > 0 && *cp != ']')
index 1a9a6bf4c871afc0ac24055ed2c90797779a689e..eaaf638730bb5076a84b474ed97261534fba59fb 100644 (file)
@@ -261,7 +261,7 @@ static const char *pgp_entry_fmt(char *buf, size_t buflen, size_t col, int cols,
 
     {
       char buf2[SHORT_STRING];
-      int do_locales;
+      bool do_locales = true;
       struct tm *tm = NULL;
       size_t len;
 
@@ -270,11 +270,9 @@ static const char *pgp_entry_fmt(char *buf, size_t buflen, size_t col, int cols,
       const char *cp = src;
       if (*cp == '!')
       {
-        do_locales = 0;
+        do_locales = false;
         cp++;
       }
-      else
-        do_locales = 1;
 
       len = buflen - 1;
       while (len > 0 && *cp != ']')