X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mx%2Fcompress.c;h=ec4db2b33514006d17862006f84261e34683456b;hp=2b18cbbd7044319ea40e4ddb6dffb92afffafc78;hb=a833478d0bab31dd0016520da5049bdf45b29736;hpb=1d76b29d79137330c8f42d489fe3f67a23f2390b diff --git a/lib-mx/compress.c b/lib-mx/compress.c index 2b18cbb..ec4db2b 100644 --- a/lib-mx/compress.c +++ b/lib-mx/compress.c @@ -59,7 +59,7 @@ static void mbox_unlock_compressed (CONTEXT * ctx, FILE * fp) static int is_new (const char *path) { - return (access (path, W_OK) && errno == ENOENT); + return access (path, W_OK) && errno == ENOENT; } static const char *find_compress_hook (int type, const char *path) @@ -102,7 +102,7 @@ int mutt_can_append_compressed (const char *path) int magic; if (is_new (path)) - return (find_compress_hook (M_CLOSEHOOK, path) ? 1 : 0); + return find_compress_hook (M_CLOSEHOOK, path) ? 1 : 0; magic = mx_get_magic (path); @@ -470,4 +470,5 @@ mx_t const compress_mx = { NULL, NULL, NULL, + NULL, };