From bebc6ed9805a8d91dc5a7a601ce3852c78a513da Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Tue, 11 Apr 2017 18:16:14 +0100 Subject: [PATCH] create_hcache_dir --- hcache.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hcache.c b/hcache.c index 66d5160d8..4a2d2abf3 100644 --- a/hcache.c +++ b/hcache.c @@ -527,28 +527,28 @@ crc_matches(const char *d, unsigned int crc) * create_hcache_dir - Create parent dirs for the hcache database * @path: Database filename * - * @retval 1 Success - * @retval 0 Failure (errno set) + * @retval true Success + * @retval false Failure (errno set) */ -static int create_hcache_dir(const char *path) +static bool create_hcache_dir(const char *path) { if (!path) - return 0; + return false; static char dir[_POSIX_PATH_MAX]; strfcpy (dir, path, sizeof(dir)); char *p = strrchr (dir, '/'); if (!p) - return 1; + return true; *p = 0; if (mutt_mkdir (dir, S_IRWXU | S_IRWXG | S_IRWXO) == 0) - return 1; + return true; mutt_error (_("Can't create %s: %s."), dir, strerror (errno)); mutt_sleep (2); - return 0; + return false; } /** -- 2.40.0