diff options
author | Aaron Durbin <adurbin@chromium.org> | 2014-03-05 12:01:36 -0600 |
---|---|---|
committer | Aaron Durbin <adurbin@google.com> | 2014-03-13 05:28:07 +0100 |
commit | aa8784c2d140c373b6edaf20192a9ed0669f0956 (patch) | |
tree | badeff3162d3ab835136e44875846dc1c9e0d1bc /util/cbfstool/common.c | |
parent | a983cea5b99686b9281893b980d701dd2f1bf35e (diff) |
cbfstool: move iself() to eflheaders.c
The only user of iself() was in elfheaders.c. Move it there,
and make it local to the compilation unit.
Change-Id: I0d919ce372f6e2fce75885fb4fcba20d985979b3
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/5369
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Diffstat (limited to 'util/cbfstool/common.c')
-rw-r--r-- | util/cbfstool/common.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c index 2fe0f01daf..b746c863d1 100644 --- a/util/cbfstool/common.c +++ b/util/cbfstool/common.c @@ -23,7 +23,6 @@ #include <stdlib.h> #include <string.h> #include <libgen.h> -#include "elf.h" #include "common.h" #include "cbfs.h" @@ -137,12 +136,6 @@ uint32_t string_to_arch(const char *arch_string) return ret; } -int iself(unsigned char *input) -{ - Elf32_Ehdr *ehdr = (Elf32_Ehdr *) input; - return !memcmp(ehdr->e_ident, ELFMAG, 4); -} - static struct filetypes_t { uint32_t type; const char *name; |