Harald Hoyer fe68ba
From 731b37e92902fd659270da89b1b46f92264db538 Mon Sep 17 00:00:00 2001
Harald Hoyer fe68ba
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer fe68ba
Date: Mon, 7 May 2018 15:23:04 +0200
Harald Hoyer fe68ba
Subject: [PATCH] dracut-install.c: untabify
Harald Hoyer fe68ba
Harald Hoyer fe68ba
---
Harald Hoyer fe68ba
 install/dracut-install.c | 25 ++++++++++++-------------
Harald Hoyer fe68ba
 1 file changed, 12 insertions(+), 13 deletions(-)
Harald Hoyer fe68ba
Harald Hoyer fe68ba
diff --git a/install/dracut-install.c b/install/dracut-install.c
Harald Hoyer fe68ba
index 14fc0ab9..f104f664 100644
Harald Hoyer fe68ba
--- a/install/dracut-install.c
Harald Hoyer fe68ba
+++ b/install/dracut-install.c
Harald Hoyer fe68ba
@@ -402,9 +402,9 @@ static int resolve_deps(const char *src)
Harald Hoyer fe68ba
         _cleanup_pclose_ FILE *fptr = NULL;
Harald Hoyer fe68ba
         _cleanup_free_ char *cmd = NULL;
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
-	buf = malloc(LINE_MAX);
Harald Hoyer fe68ba
-	if (buf == NULL)
Harald Hoyer fe68ba
-		return -errno;
Harald Hoyer fe68ba
+        buf = malloc(LINE_MAX);
Harald Hoyer fe68ba
+        if (buf == NULL)
Harald Hoyer fe68ba
+                return -errno;
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
         if (strstr(src, ".so") == 0) {
Harald Hoyer fe68ba
                 _cleanup_close_ int fd = -1;
Harald Hoyer fe68ba
@@ -456,11 +456,11 @@ static int resolve_deps(const char *src)
Harald Hoyer fe68ba
                         break;
Harald Hoyer fe68ba
                 }
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
-		/* musl ldd */
Harald Hoyer fe68ba
-		if (strstr(buf, "Not a valid dynamic program"))
Harald Hoyer fe68ba
-			break;
Harald Hoyer fe68ba
+                /* musl ldd */
Harald Hoyer fe68ba
+                if (strstr(buf, "Not a valid dynamic program"))
Harald Hoyer fe68ba
+                        break;
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
-		/* glibc */
Harald Hoyer fe68ba
+                /* glibc */
Harald Hoyer fe68ba
                 if (strstr(buf, "cannot execute binary file"))
Harald Hoyer fe68ba
                         break;
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
@@ -1061,7 +1061,7 @@ static int install_one(const char *src, const char *dst)
Harald Hoyer fe68ba
         if (strchr(src, '/') == NULL) {
Harald Hoyer fe68ba
                 char **p = find_binary(src);
Harald Hoyer fe68ba
                 if (p) {
Harald Hoyer fe68ba
-			char **q = NULL;
Harald Hoyer fe68ba
+                        char **q = NULL;
Harald Hoyer fe68ba
                         STRV_FOREACH(q, p) {
Harald Hoyer fe68ba
                                 char *newsrc = *q;
Harald Hoyer fe68ba
                                 log_debug("dracut_install '%s' '%s'", newsrc, dst);
Harald Hoyer fe68ba
@@ -1097,7 +1097,7 @@ static int install_all(int argc, char **argv)
Harald Hoyer fe68ba
                 if (strchr(argv[i], '/') == NULL) {
Harald Hoyer fe68ba
                         char **p = find_binary(argv[i]);
Harald Hoyer fe68ba
                         if (p) {
Harald Hoyer fe68ba
-				char **q = NULL;
Harald Hoyer fe68ba
+                                char **q = NULL;
Harald Hoyer fe68ba
                                 STRV_FOREACH(q, p) {
Harald Hoyer fe68ba
                                         char *newsrc = *q;
Harald Hoyer fe68ba
                                         log_debug("dracut_install '%s'", newsrc);
Harald Hoyer fe68ba
@@ -1440,12 +1440,11 @@ static int install_modules(int argc, char **argv)
Harald Hoyer fe68ba
         for (i = 0; i < argc; i++) {
Harald Hoyer fe68ba
                 int r = 0;
Harald Hoyer fe68ba
                 int ret = -1;
Harald Hoyer fe68ba
-
Harald Hoyer fe68ba
                 log_debug("Handle module '%s'", argv[i]);
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
                 if (argv[i][0] == '/') {
Harald Hoyer fe68ba
                         _cleanup_kmod_module_unref_list_ struct kmod_list *modlist = NULL;
Harald Hoyer fe68ba
-			_cleanup_free_ const char *modname = NULL;
Harald Hoyer fe68ba
+                        _cleanup_free_ const char *modname = NULL;
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
                         r = kmod_module_new_from_path(ctx, argv[i], &mod_o);
Harald Hoyer fe68ba
                         if (r < 0) {
Harald Hoyer fe68ba
@@ -1532,7 +1531,7 @@ static int install_modules(int argc, char **argv)
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
                         for (FTSENT *ftsent = fts_read(fts); ftsent != NULL; ftsent = fts_read(fts)) {
Harald Hoyer fe68ba
                                 _cleanup_kmod_module_unref_list_ struct kmod_list *modlist = NULL;
Harald Hoyer fe68ba
-				_cleanup_free_ const char *modname = NULL;
Harald Hoyer fe68ba
+                                _cleanup_free_ const char *modname = NULL;
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
                                 if((ftsent->fts_info == FTS_D) && !check_module_path(ftsent->fts_accpath)) {
Harald Hoyer fe68ba
                                         fts_set(fts, ftsent, FTS_SKIP);
Harald Hoyer fe68ba
@@ -1602,7 +1601,7 @@ static int install_modules(int argc, char **argv)
Harald Hoyer fe68ba
                         }
Harald Hoyer fe68ba
                 } else {
Harald Hoyer fe68ba
                         _cleanup_kmod_module_unref_list_ struct kmod_list *modlist = NULL;
Harald Hoyer fe68ba
-			char *modname = argv[i];
Harald Hoyer fe68ba
+                        char *modname = argv[i];
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
                         if (endswith(modname, ".ko")) {
Harald Hoyer fe68ba
                                 int len = strlen(modname);
Harald Hoyer fe68ba