]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix coding style
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 18 Oct 2016 21:13:53 +0000 (23:13 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 18 Oct 2016 21:18:05 +0000 (23:18 +0200)
ccache.c
util.c

index a008461adef5c9491064003c4c5531a22c04bbe9..40425e0ea59c19204c226789406544430dcfdbcc 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1066,17 +1066,17 @@ to_cache(struct args *args)
 
        char *tmp_su;
        if (generating_stackusage) {
-                char *tmp_aux;
-                // GCC has some funny rule about max extension length.
-                if (strlen(get_extension(output_obj)) < 6) {
-                        tmp_aux = remove_extension(output_obj);
-                } else {
-                        tmp_aux = x_strdup(output_obj);
-                }
-                tmp_su = format("%s.su", tmp_aux);
-                free(tmp_aux);
+               char *tmp_aux;
+               // GCC has some funny rule about max extension length.
+               if (strlen(get_extension(output_obj)) < 6) {
+                       tmp_aux = remove_extension(output_obj);
+               } else {
+                       tmp_aux = x_strdup(output_obj);
+               }
+               tmp_su = format("%s.su", tmp_aux);
+               free(tmp_aux);
        } else {
-                tmp_su = NULL;
+               tmp_su = NULL;
        }
 
        // GCC (at least 4.8 and 4.9) forms the .dwo file name by removing everything
@@ -1317,8 +1317,8 @@ to_cache(struct args *args)
                put_file_in_cache(output_dep, cached_dep);
        }
 
-        if (output_su) {
-          put_file_in_cache(output_su, cached_su);
+       if (output_su) {
+               put_file_in_cache(output_su, cached_su);
        }
 
        stats_update(STATS_TOCACHE);
@@ -1471,7 +1471,7 @@ update_cached_result_globals(struct file_hash *hash)
        cached_stderr = get_path_in_cache(object_name, ".stderr");
        cached_dep = get_path_in_cache(object_name, ".d");
        cached_cov = get_path_in_cache(object_name, ".gcno");
-       cached_su  = get_path_in_cache(object_name, ".su");
+       cached_su = get_path_in_cache(object_name, ".su");
        cached_dia = get_path_in_cache(object_name, ".dia");
 
        if (using_split_dwarf) {
diff --git a/util.c b/util.c
index f048d972f721d3545b92dc5872b1e581036dafd5..6122c84365e8a896769d032592ba567f3bc21616 100644 (file)
--- a/util.c
+++ b/util.c
@@ -990,8 +990,8 @@ parse_size_with_suffix(const char *str, uint64_t *size)
 
 
 #if !defined(HAVE_REALPATH) && \
-    defined(_WIN32) && \
-    !defined(HAVE_GETFINALPATHNAMEBYHANDLEW)
+  defined(_WIN32) && \
+  !defined(HAVE_GETFINALPATHNAMEBYHANDLEW)
 static BOOL GetFileNameFromHandle(HANDLE file_handle, TCHAR *filename,
                                   WORD cch_filename)
 {