]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Tweak code style
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 1 May 2019 12:25:16 +0000 (14:25 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 1 May 2019 12:25:20 +0000 (14:25 +0200)
src/ccache.c

index 6f9d4b496e6ee1747901744cdff43bbe713b06b2..2d2a96eb480798e9399d74b3805d92eeefe3a382 100644 (file)
@@ -1519,8 +1519,8 @@ to_cache(struct args *args, struct hash *depend_mode_hash)
                update_cached_result_globals(object_hash);
        }
 
-       bool produce_dep_file = generating_dependencies &&
-                               !str_eq(output_dep, "/dev/null");
+       bool produce_dep_file =
+               generating_dependencies && !str_eq(output_dep, "/dev/null");
 
        if (produce_dep_file) {
                use_relative_paths_in_depfile(output_dep);
@@ -2279,8 +2279,8 @@ from_cache(enum fromcache_call_mode mode, bool put_object_in_manifest)
 
        // (If mode != FROMCACHE_DIRECT_MODE, the dependency file is created by gcc.)
        bool produce_dep_file =
-               generating_dependencies && mode == FROMCACHE_DIRECT_MODE &&
-               !str_eq(output_dep, "/dev/null");
+               generating_dependencies && mode == FROMCACHE_DIRECT_MODE
+               && !str_eq(output_dep, "/dev/null");
 
        MTR_BEGIN("file", "file_get");
 
@@ -3849,8 +3849,8 @@ ccache(int argc, char *argv[])
        MTR_END("main", "process_args");
 
        if (conf->depend_mode
-           && (!generating_dependencies || str_eq(output_dep, "/dev/null") ||
-               !conf->run_second_cpp || conf->unify)) {
+           && (!generating_dependencies || str_eq(output_dep, "/dev/null")
+               || !conf->run_second_cpp || conf->unify)) {
                cc_log("Disabling depend mode");
                conf->depend_mode = false;
        }