From a9041a113fc2452c3b1d830a5d05ae9d59333b01 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Tue, 11 Apr 2017 15:33:09 +0100 Subject: [PATCH] mutt_comp_can_read --- compress.c | 12 ++++++------ compress.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/compress.c b/compress.c index e7ba19ba6..822e6c56d 100644 --- a/compress.c +++ b/compress.c @@ -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; } /** diff --git a/compress.h b/compress.h index 8b4e89f70..8599b6c33 100644 --- a/compress.h +++ b/compress.h @@ -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; -- 2.40.0