diff options
author | Roland McGrath <roland@redhat.com> | 2010-02-15 15:15:50 -0800 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2010-02-15 15:15:50 -0800 |
commit | e9ca738afcb9cb00d747ef2f072f82a092eaaaff (patch) | |
tree | 83fa66456823279464e1b787fd65f1bf13f1190e /tests/asm-tst9.c | |
parent | 060038e1a759aed39ba7f8804ac2ac266fdb4178 (diff) | |
download | android_external_elfutils-e9ca738afcb9cb00d747ef2f072f82a092eaaaff.tar.gz android_external_elfutils-e9ca738afcb9cb00d747ef2f072f82a092eaaaff.tar.bz2 android_external_elfutils-e9ca738afcb9cb00d747ef2f072f82a092eaaaff.zip |
Fix -Wshadow warning in asm-tst9.
Diffstat (limited to 'tests/asm-tst9.c')
-rw-r--r-- | tests/asm-tst9.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/asm-tst9.c b/tests/asm-tst9.c index 1797e48c..ad252759 100644 --- a/tests/asm-tst9.c +++ b/tests/asm-tst9.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2005 Red Hat, Inc. +/* Copyright (C) 2002-2010 Red Hat, Inc. This file is part of Red Hat elfutils. Written by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -211,19 +211,19 @@ main (void) for (cnt = 1; cnt < 3; ++cnt) { - Elf_Scn *scn; + Elf_Scn *escn; GElf_Shdr shdr_mem; GElf_Shdr *shdr; - scn = elf_getscn (elf, cnt); - if (scn == NULL) + escn = elf_getscn (elf, cnt); + if (escn == NULL) { printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1)); result = 1; continue; } - shdr = gelf_getshdr (scn, &shdr_mem); + shdr = gelf_getshdr (escn, &shdr_mem); if (shdr == NULL) { printf ("cannot get section header for section %Zd: %s\n", @@ -303,7 +303,7 @@ main (void) if (cnt == 1) { - Elf_Data *data = elf_getdata (scn, NULL); + Elf_Data *data = elf_getdata (escn, NULL); if (data == NULL) { |