]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
untar.c: style fixes
authorMartin Matuska <martin@matuska.org>
Mon, 7 Feb 2022 09:48:51 +0000 (10:48 +0100)
committerMartin Matuska <martin@matuska.org>
Mon, 7 Feb 2022 09:48:51 +0000 (10:48 +0100)
contrib/untar.c

index 4d10c26417421424aaab3288e369a57a17905f08..2550e510a5a1ea9aae26be117c44cf9555e42634 100644 (file)
@@ -82,11 +82,11 @@ create_dir(char *pathname, int mode)
                pathname[strlen(pathname) - 1] = '\0';
 
        /* Try creating the directory. */
-  #if defined(_WIN32) && !defined(__CYGWIN__)
-  r = _mkdir(pathname);
-  #else 
-  r = mkdir(pathname, mode); 
-  #endif
+#if defined(_WIN32) && !defined(__CYGWIN__)
+       r = _mkdir(pathname);
+#else
+       r = mkdir(pathname, mode);
+#endif
 
        if (r != 0) {
                /* On failure, try creating parent directory. */
@@ -95,11 +95,11 @@ create_dir(char *pathname, int mode)
                        *p = '\0';
                        create_dir(pathname, 0755);
                        *p = '/';
-                       #if defined(_WIN32) && !defined(__CYGWIN__)
-      r = _mkdir(pathname);
-      #else 
-      r = mkdir(pathname, mode); 
-      #endif
+#if defined(_WIN32) && !defined(__CYGWIN__)
+                       r = _mkdir(pathname);
+#else
+                       r = mkdir(pathname, mode);
+#endif
                }
        }
        if (r != 0)