]> granicus.if.org Git - neomutt/commitdiff
mutt_comp_can_read
authorRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 14:33:09 +0000 (15:33 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 23:29:59 +0000 (00:29 +0100)
compress.c
compress.h

index e7ba19ba63af4d688eb2e1789fdbb04aa48b24f4..822e6c56d214bc4f4ea46415ee9d5f08ee7e26f1 100644 (file)
@@ -847,19 +847,19 @@ mutt_comp_can_append (CONTEXT *ctx)
  * A match means it's our responsibility to open the file.
  *
  * Returns:
- *      1: Yes, we can read the file
- *      0: No, we cannot read the file
+ *      true: Yes, we can read the file
+ *      false: No, we cannot read the file
  */
-int
+bool
 mutt_comp_can_read (const char *path)
 {
   if (!path)
-    return 0;
+    return false;
 
   if (find_hook (MUTT_OPENHOOK, path))
-    return 1;
+    return true;
   else
-    return 0;
+    return false;
 }
 
 /**
index 8b4e89f70c748c94d6e2af0944fde8a8d9cd6a1a..8599b6c33ecf17bf0d510c6002ba1165b6cabb4f 100644 (file)
@@ -20,7 +20,7 @@
 #define _MUTT_COMPRESS_H 1
 
 bool mutt_comp_can_append   (CONTEXT *ctx);
-int mutt_comp_can_read      (const char *path);
+bool mutt_comp_can_read     (const char *path);
 int mutt_comp_valid_command (const char *cmd);
 
 extern struct mx_ops mx_comp_ops;