From: H. P. A. <hp...@zy...> - 2009-06-29 19:27:14
|
I personally really dislike this style. -hpa Cyrill Gorcunov wrote: > Signed-off-by: Cyrill Gorcunov <gor...@gm...> > --- > output/outelf64.c | 8 +++----- > 1 files changed, 3 insertions(+), 5 deletions(-) > > diff --git a/output/outelf64.c b/output/outelf64.c > index 9834cdc..4c95211 100644 > --- a/output/outelf64.c > +++ b/output/outelf64.c > @@ -449,11 +449,9 @@ static int32_t elf_section_names(char *name, int pass, int *bits) > if (i == nsects) { > const struct elf_known_section *ks = elf_known_sections; > > - while (ks->name) { > - if (!strcmp(name, ks->name)) > - break; > - ks++; > - } > + for (; ks->name; ks++) > + if (!strcmp(name, ks->name)) > + break; > > type = type ? type : ks->type; > align = align ? align : ks->align; |