This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Reformat elfedit.c
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Thu, 7 Jan 2010 12:50:04 -0800
- Subject: PATCH: Reformat elfedit.c
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
I checked in this patch to reformat elfedit.c.
H.J.
---
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 2a39261..f42d478 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,9 @@
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
+ * elfedit.c (update_elf_header): Reformat.
+
+2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
+
* readelf.c (usage): Fix indent for --symbols.
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
diff --git a/binutils/elfedit.c b/binutils/elfedit.c
index 28e40be..6e2f8db 100644
--- a/binutils/elfedit.c
+++ b/binutils/elfedit.c
@@ -253,8 +253,7 @@ update_elf_header (const char *file_name, FILE *file)
/* Skip if class doesn't match. */
if (input_elf_class == -1)
input_elf_class = elf_header.e_ident[EI_CLASS];
- else
- if (elf_header.e_ident[EI_CLASS] != input_elf_class)
+ else if (elf_header.e_ident[EI_CLASS] != input_elf_class)
{
non_fatal
(_("%s: Unmatched EI_CLASS: %d is not %d\n"),