summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-05-09 00:25:55 +0000
committerEric Andersen <andersen@codepoet.org>2002-05-09 00:25:55 +0000
commitf76191d591b53ecd4af55f429e35bfe8e0246401 (patch)
tree0e64715a3f4f309d6db89257e25041efd9ae904f /ldso
parentfb1c180bcc1fb5cc4e8ca254bd9a34d888dccf88 (diff)
Fix funky use of brackets
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/dl-elf.c5
-rw-r--r--ldso/ldso/readelflib1.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index b758df2d6..7dbbe6f4b 100644
--- a/ldso/ldso/dl-elf.c
+++ b/ldso/ldso/dl-elf.c
@@ -535,7 +535,7 @@ struct elf_resolve *_dl_load_elf_shared_library(int secure,
* calculated differently for MIPS. We look for a null tag
* value instead.
*/
- while(dpnt->d_tag) {
+ while(dpnt->d_tag)
if (dpnt->d_tag == DT_MIPS_GOTSYM)
mips_gotsym = (unsigned long) dpnt->d_un.d_val;
if (dpnt->d_tag == DT_MIPS_LOCAL_GOTNO)
@@ -543,8 +543,9 @@ struct elf_resolve *_dl_load_elf_shared_library(int secure,
if (dpnt->d_tag == DT_MIPS_SYMTABNO)
mips_symtabno = (unsigned long) dpnt->d_un.d_val;
#else
- for (i = 0; i < dynamic_size; i++) {
+ for (i = 0; i < dynamic_size; i++)
#endif
+ {
if (dpnt->d_tag > DT_JMPREL) {
dpnt++;
continue;
diff --git a/ldso/ldso/readelflib1.c b/ldso/ldso/readelflib1.c
index b758df2d6..7dbbe6f4b 100644
--- a/ldso/ldso/readelflib1.c
+++ b/ldso/ldso/readelflib1.c
@@ -535,7 +535,7 @@ struct elf_resolve *_dl_load_elf_shared_library(int secure,
* calculated differently for MIPS. We look for a null tag
* value instead.
*/
- while(dpnt->d_tag) {
+ while(dpnt->d_tag)
if (dpnt->d_tag == DT_MIPS_GOTSYM)
mips_gotsym = (unsigned long) dpnt->d_un.d_val;
if (dpnt->d_tag == DT_MIPS_LOCAL_GOTNO)
@@ -543,8 +543,9 @@ struct elf_resolve *_dl_load_elf_shared_library(int secure,
if (dpnt->d_tag == DT_MIPS_SYMTABNO)
mips_symtabno = (unsigned long) dpnt->d_un.d_val;
#else
- for (i = 0; i < dynamic_size; i++) {
+ for (i = 0; i < dynamic_size; i++)
#endif
+ {
if (dpnt->d_tag > DT_JMPREL) {
dpnt++;
continue;