From: Joel Rosdahl Date: Sun, 12 Sep 2010 14:37:38 +0000 (+0200) Subject: Don't compare booleans with 0 X-Git-Tag: v3.1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0660f94ee5910ad941755ca62d6a34de5ac69cfc;p=thirdparty%2Fccache.git Don't compare booleans with 0 --- diff --git a/ccache.c b/ccache.c index c8c65892d..2a4ba22db 100644 --- a/ccache.c +++ b/ccache.c @@ -995,7 +995,7 @@ from_cache(enum fromcache_call_mode mode, bool put_object_in_manifest) } else { unlink(output_obj); /* only make a hardlink if the cache file is uncompressed */ - if (getenv("CCACHE_HARDLINK") && file_is_compressed(cached_obj) == 0) { + if (getenv("CCACHE_HARDLINK") && !file_is_compressed(cached_obj)) { ret = link(cached_obj, output_obj); } else { ret = copy_file(cached_obj, output_obj, 0); @@ -1025,7 +1025,7 @@ from_cache(enum fromcache_call_mode mode, bool put_object_in_manifest) if (produce_dep_file) { unlink(output_dep); /* only make a hardlink if the cache file is uncompressed */ - if (getenv("CCACHE_HARDLINK") && file_is_compressed(cached_dep) == 0) { + if (getenv("CCACHE_HARDLINK") && !file_is_compressed(cached_dep)) { ret = link(cached_dep, output_dep); } else { ret = copy_file(cached_dep, output_dep, 0);