]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Tweak code style
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 21 Mar 2019 19:49:15 +0000 (20:49 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 21 Mar 2019 19:49:15 +0000 (20:49 +0100)
src/ccache.c

index 48c655b5852d3cffeecb083d2350c9def843b8ab..c3597de44417f0e609c54f5a7375264ecd75a132 100644 (file)
@@ -3045,11 +3045,11 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
                // If an argument isn't a plain file then assume its an option, not an
                // input file. This allows us to cope better with unusual compiler options.
                //
-               // NOTE that "/dev/null" is an exception that is sometimes used as an input
+               // Note that "/dev/null" is an exception that is sometimes used as an input
                // file when code is testing compiler flags.
                struct stat st;
-               if (!str_eq(argv[i], "/dev/null") &&
-+                  (stat(argv[i], &st) != 0 || !S_ISREG(st.st_mode))) {
+               if (!str_eq(argv[i], "/dev/null")
+                   && (stat(argv[i], &st) != 0 || !S_ISREG(st.st_mode))) {
                        cc_log("%s is not a regular file, not considering as input file",
                               argv[i]);
                        args_add(stripped_args, argv[i]);