From: Joel Rosdahl Date: Sun, 14 Oct 2018 19:59:40 +0000 (+0200) Subject: Fix alignment and indentation X-Git-Tag: v3.5~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2513e05ada459f8617398ce3434f254ae3678ca;p=thirdparty%2Fccache.git Fix alignment and indentation --- diff --git a/src/ccache.c b/src/ccache.c index 1a9ba146f..0816314b7 100644 --- a/src/ccache.c +++ b/src/ccache.c @@ -66,7 +66,7 @@ static const char USAGE_TEXT[] = " -C, --clear clear the cache completely (except configuration)\n" " -F, --max-files=N set maximum number of files in cache to N (use 0 for\n" " no limit)\n" - " -k, --get-config=K get the value of the configuration key K\n" + " -k, --get-config=K get the value of the configuration key K\n" " -M, --max-size=SIZE set maximum size of cache to SIZE (use 0 for no\n" " limit); available suffixes: k, M, G, T (decimal) and\n" " Ki, Mi, Gi, Ti (binary); default suffix: G\n" @@ -3560,7 +3560,7 @@ ccache_main_options(int argc, char *argv[]) int c; while ((c = getopt_long(argc, argv, "cCk:hF:M:o:psVz", options, NULL)) - != -1) { + != -1) { switch (c) { case DUMP_MANIFEST: manifest_dump(optarg, stdout); diff --git a/src/util.c b/src/util.c index 5f4a4b7c4..3a34e33b0 100644 --- a/src/util.c +++ b/src/util.c @@ -274,12 +274,12 @@ int mkstemp(char *template) { #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wdeprecated-declarations" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif mktemp(template); #ifdef __GNUC__ - #pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif return open(template, O_RDWR | O_CREAT | O_EXCL | O_BINARY, 0600); } diff --git a/unittest/framework.c b/unittest/framework.c index f98a6c694..797822ffd 100644 --- a/unittest/framework.c +++ b/unittest/framework.c @@ -212,7 +212,7 @@ cct_check_int_eq(const char *file, int line, const char *expression, bool cct_check_str_eq(const char *file, int line, const char *expression, char *expected, char *actual, - bool free1, bool free2) + bool free1, bool free2) { bool result; diff --git a/unittest/test_conf.c b/unittest/test_conf.c index f3d63da98..e61aa6ac4 100644 --- a/unittest/test_conf.c +++ b/unittest/test_conf.c @@ -414,7 +414,7 @@ TEST(conf_print_unknown_value) CHECK(log); CHECK(!conf_print_value(conf, "foo", log, &errmsg)); CHECK_STR_EQ_FREE2("unknown configuration option \"foo\"", - errmsg); + errmsg); fclose(log); } {