summaryrefslogtreecommitdiff
path: root/util/cbfstool/tools/cbfs-mkstage.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-05-26 12:22:10 +0000
committerStefan Reinauer <stepan@openbios.org>2009-05-26 12:22:10 +0000
commit3a5c27763f4483f42851c127547e6db0fc5b69bc (patch)
treec4958758a373572f071b81d8dd19fe0b37d9a05f /util/cbfstool/tools/cbfs-mkstage.c
parentbbe29ee06e7030bbba6e2c8c5790e785bf7f0c5b (diff)
downloadcoreboot-3a5c27763f4483f42851c127547e6db0fc5b69bc.tar.xz
Cosmetic cbfstool update (trivial)
* remove some dead code * fix indentation * comment in some destructors and fix some other warnings * use HOSTCC instead of CC (not all the way cosmetic, but very simple) Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4299 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/cbfstool/tools/cbfs-mkstage.c')
-rw-r--r--util/cbfstool/tools/cbfs-mkstage.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/util/cbfstool/tools/cbfs-mkstage.c b/util/cbfstool/tools/cbfs-mkstage.c
index 0c472da517..b758851f2c 100644
--- a/util/cbfstool/tools/cbfs-mkstage.c
+++ b/util/cbfstool/tools/cbfs-mkstage.c
@@ -34,7 +34,6 @@ int parse_elf(unsigned char *input, unsigned char **output,
{
Elf32_Phdr *phdr;
Elf32_Ehdr *ehdr = (Elf32_Ehdr *) input;
- Elf32_Shdr *shdr;
char *header, *buffer;
unsigned char *out;
@@ -47,7 +46,6 @@ int parse_elf(unsigned char *input, unsigned char **output,
header = (char *)ehdr;
phdr = (Elf32_Phdr *) & (header[ehdr->e_phoff]);
- shdr = (Elf32_Shdr *) & (header[ehdr->e_shoff]);
/* Now, regular headers - we only care about PT_LOAD headers,
* because thats what we're actually going to load