]> granicus.if.org Git - neomutt/commitdiff
convert param to bool
authorRichard Russon <rich@flatcap.org>
Sun, 6 May 2018 16:27:26 +0000 (17:27 +0100)
committerRichard Russon <rich@flatcap.org>
Sun, 6 May 2018 16:27:26 +0000 (17:27 +0100)
parse.c
protos.h

diff --git a/parse.c b/parse.c
index ab1a0a15cc331c5b28789251785ac75f8234e2c9..8216418234946327c691f208115a2cb4a212327f 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -428,10 +428,10 @@ static void parse_content_disposition(const char *s, struct Body *ct)
 /**
  * mutt_read_mime_header - Parse a MIME header
  * @param fp      stream to read from
- * @param digest  1 if reading subparts of a multipart/digest, 0 otherwise
+ * @param digest  true if reading subparts of a multipart/digest
  * @retval ptr New Body containing parsed structure
  */
-struct Body *mutt_read_mime_header(FILE *fp, int digest)
+struct Body *mutt_read_mime_header(FILE *fp, bool digest)
 {
   struct Body *p = mutt_body_new();
   char *c = NULL;
@@ -586,10 +586,10 @@ struct Body *mutt_rfc822_parse_message(FILE *fp, struct Body *parent)
  * @param boundary body separator
  * @param end_off  length of the multipart body (used when the final
  *                 boundary is missing to avoid reading too far)
- * @param digest   1 if reading a multipart/digest, 0 otherwise
+ * @param digest   true if reading a multipart/digest
  * @retval ptr New Body containing parsed structure
  */
-struct Body *mutt_parse_multipart(FILE *fp, const char *boundary, LOFF_T end_off, int digest)
+struct Body *mutt_parse_multipart(FILE *fp, const char *boundary, LOFF_T end_off, bool digest)
 {
   char buffer[LONG_STRING];
   struct Body *head = NULL, *last = NULL, *new = NULL;
index ed736d8f0457e1de3d02606b9ee72528fb485884..8b262e3a0db3ee6ceb2da94a8312071323a8217a 100644 (file)
--- a/protos.h
+++ b/protos.h
@@ -108,9 +108,9 @@ struct Body *mutt_make_file_attach(const char *path);
 struct Body *mutt_make_message_attach(struct Context *ctx, struct Header *hdr, int attach_msg);
 struct Body *mutt_remove_multipart(struct Body *b);
 struct Body *mutt_make_multipart(struct Body *b);
-struct Body *mutt_parse_multipart(FILE *fp, const char *boundary, LOFF_T end_off, int digest);
+struct Body *mutt_parse_multipart(FILE *fp, const char *boundary, LOFF_T end_off, bool digest);
 struct Body *mutt_rfc822_parse_message(FILE *fp, struct Body *parent);
-struct Body *mutt_read_mime_header(FILE *fp, int digest);
+struct Body *mutt_read_mime_header(FILE *fp, bool digest);
 
 struct Content *mutt_get_content_info(const char *fname, struct Body *b);