]> granicus.if.org Git - neomutt/commitdiff
boolify some variables
authorRichard Russon <rich@flatcap.org>
Mon, 29 Jan 2018 03:27:19 +0000 (03:27 +0000)
committerRichard Russon <rich@flatcap.org>
Sat, 3 Feb 2018 13:29:13 +0000 (13:29 +0000)
rfc2231.c

index 34da9df5a79340ec999bc81a25dcc42bea9a1254..b02e952c45ab9c70d7fde3b44f99704bd5b8adac 100644 (file)
--- a/rfc2231.c
+++ b/rfc2231.c
@@ -50,7 +50,7 @@ struct Rfc2231Parameter
   char *attribute;
   char *value;
   int index;
-  int encoded;
+  bool encoded;
   struct Rfc2231Parameter *next;
 };
 
@@ -164,7 +164,7 @@ static void rfc2231_join_continuations(struct Parameter **head, struct Rfc2231Pa
   char charset[STRING];
   char *value = NULL;
   char *valp = NULL;
-  int encoded;
+  bool encoded;
 
   size_t l, vl;
 
@@ -176,7 +176,7 @@ static void rfc2231_join_continuations(struct Parameter **head, struct Rfc2231Pa
     mutt_str_strfcpy(attribute, par->attribute, sizeof(attribute));
 
     encoded = par->encoded;
-    if (encoded != 0)
+    if (encoded)
       valp = rfc2231_get_charset(par->value, charset, sizeof(charset));
     else
       valp = par->value;
@@ -220,7 +220,7 @@ void rfc2231_decode_parameters(struct Parameter **headp)
   char *s = NULL, *t = NULL;
   char charset[STRING];
 
-  int encoded;
+  bool encoded;
   int index;
   bool dirty = false; /* set to 1 when we may have created
                        * empty parameters. */