From: Joel Rosdahl Date: Mon, 7 May 2018 18:10:44 +0000 (+0200) Subject: Fix code style X-Git-Tag: v3.5~61 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a630d2e1d06aabee4841eb1c4169584447e26623;p=thirdparty%2Fccache.git Fix code style --- diff --git a/src/ccache.c b/src/ccache.c index c5497dea3..cf61f1d0d 100644 --- a/src/ccache.c +++ b/src/ccache.c @@ -1814,8 +1814,8 @@ calculate_object_hash(struct args *args, struct mdfour *hash, int direct_mode) if ((str_eq(args->argv[i], "-ccbin") || str_eq(args->argv[i], "--compiler-bindir")) - && i + 1 < args->argc - && x_stat(args->argv[i+1], &st) == 0) { + && i + 1 < args->argc + && x_stat(args->argv[i+1], &st) == 0) { found_ccbin = true; hash_delimiter(hash, "ccbin"); hash_nvcc_host_compiler(hash, &st, args->argv[i+1]); diff --git a/src/cleanup.c b/src/cleanup.c index 20dc77f78..607e5dbba 100644 --- a/src/cleanup.c +++ b/src/cleanup.c @@ -165,7 +165,8 @@ clean_up_dir(struct conf *conf, const char *dir, double limit_multiple) // subdirectories is cleaned up. When doing so, files are deleted (in LRU // order) until the levels are below limit_multiple. cache_size_threshold = (uint64_t)round(conf->max_size * limit_multiple / 16); - files_in_cache_threshold = (size_t)round(conf->max_files * limit_multiple / 16); + files_in_cache_threshold = + (size_t)round(conf->max_files * limit_multiple / 16); num_files = 0; cache_size = 0; diff --git a/src/conf.c b/src/conf.c index 0ba5e2c11..ceb78585d 100644 --- a/src/conf.c +++ b/src/conf.c @@ -377,7 +377,7 @@ conf_free(struct conf *conf) free(conf->prefix_command); free(conf->prefix_command_cpp); free(conf->temporary_dir); - free((void *)conf->item_origins); /* Workaround for MSVC warning */ + free((void *)conf->item_origins); // Workaround for MSVC warning free(conf); } diff --git a/src/execute.c b/src/execute.c index ae3055203..8c4849a9f 100644 --- a/src/execute.c +++ b/src/execute.c @@ -40,7 +40,7 @@ win32argvtos(char *prefix, char **argv) break; case '"': bs = (bs << 1) + 1; - // Fallthrough. + // Fallthrough. default: k += bs + 1; bs = 0;