]> granicus.if.org Git - neomutt/commitdiff
mutt_comp_can_append
authorRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 18:13:27 +0000 (19:13 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 23:29:59 +0000 (00:29 +0100)
compress.c
compress.h

index 0998f7e56484fc95a392de611d9c34f6b1cb3e67..e7ba19ba63af4d688eb2e1789fdbb04aa48b24f4 100644 (file)
@@ -815,27 +815,27 @@ comp_open_new_message (MESSAGE *msg, CONTEXT *ctx, HEADER *hdr)
  * A match means it's our responsibility to append to the file.
  *
  * Returns:
- *      1: Yes, we can append to the file
- *      0: No, appending isn't possible
+ *      true: Yes, we can append to the file
+ *      false: No, appending isn't possible
  */
-int
+bool
 mutt_comp_can_append (CONTEXT *ctx)
 {
   if (!ctx)
-    return 0;
+    return false;
 
   /* If this succeeds, we know there's an open-hook */
   COMPRESS_INFO *ci = set_compress_info (ctx);
   if (!ci)
-    return 0;
+    return false;
 
   /* We have an open-hook, so to append we need an append-hook,
    * or a close-hook. */
   if (ci->append || ci->close)
-    return 1;
+    return true;
 
   mutt_error (_("Cannot append without an append-hook or close-hook : %s"), ctx->path);
-  return 0;
+  return false;
 }
 
 /**
index bfa262b673f75cb7ce7019b0a7c8b52f10a571f0..8b4e89f70c748c94d6e2af0944fde8a8d9cd6a1a 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef _MUTT_COMPRESS_H
 #define _MUTT_COMPRESS_H 1
 
-int mutt_comp_can_append    (CONTEXT *ctx);
+bool mutt_comp_can_append   (CONTEXT *ctx);
 int mutt_comp_can_read      (const char *path);
 int mutt_comp_valid_command (const char *cmd);