]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwfl_core_file_report: Code cleanup: Reindentation.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 7 Nov 2013 15:34:58 +0000 (16:34 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 7 Nov 2013 15:34:58 +0000 (16:34 +0100)
Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
libdwfl/ChangeLog
libdwfl/core-file.c

index 9581909e7de05e0d09e57be130236f1390a6bdca..5b445e120e1b24892561000b66ac510228046781 100644 (file)
@@ -1,3 +1,9 @@
+2013-11-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup.
+       * core-file.c (dwfl_core_file_report): Reindent block of code by
+       continue keyword.
+
 2013-10-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * argp-std.c (parse_opt): Use executable parameter of
index 37613b838ca2fc22edad3cd06860a8f7b93033bb..24a3b2482da36ae4d376a9677ba003e7869f8ff4 100644 (file)
@@ -500,34 +500,35 @@ dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable)
     lastmodp = &(*lastmodp)->next;
   for (struct r_debug_info_module *module = r_debug_info.module;
        module != NULL; module = module->next)
-    if (module->elf != NULL)
-      {
-       Dwfl_Module *mod;
-       mod = __libdwfl_report_elf (dwfl, basename (module->name), module->name,
-                                   module->fd, module->elf, module->l_addr,
-                                   true, true);
-       if (mod == NULL)
-         continue;
-       module->elf = NULL;
-       module->fd = -1;
-       /* Move this module to the end of the list, so that we end
-          up with a list in the same order as the link_map chain.  */
-       if (mod->next != NULL)
-         {
-           if (*lastmodp != mod)
-             {
-               lastmodp = &dwfl->modulelist;
-               while (*lastmodp != mod)
-                 lastmodp = &(*lastmodp)->next;
-             }
-           *lastmodp = mod->next;
-           mod->next = NULL;
-           while (*lastmodp != NULL)
-             lastmodp = &(*lastmodp)->next;
-           *lastmodp = mod;
-         }
-       lastmodp = &mod->next;
-      }
+    {
+      if (module->elf == NULL)
+       continue;
+      Dwfl_Module *mod;
+      mod = __libdwfl_report_elf (dwfl, basename (module->name), module->name,
+                                 module->fd, module->elf, module->l_addr,
+                                 true, true);
+      if (mod == NULL)
+       continue;
+      module->elf = NULL;
+      module->fd = -1;
+      /* Move this module to the end of the list, so that we end
+        up with a list in the same order as the link_map chain.  */
+      if (mod->next != NULL)
+       {
+         if (*lastmodp != mod)
+           {
+             lastmodp = &dwfl->modulelist;
+             while (*lastmodp != mod)
+               lastmodp = &(*lastmodp)->next;
+           }
+         *lastmodp = mod->next;
+         mod->next = NULL;
+         while (*lastmodp != NULL)
+           lastmodp = &(*lastmodp)->next;
+         *lastmodp = mod;
+       }
+      lastmodp = &mod->next;
+    }
 
   clear_r_debug_info (&r_debug_info);