From 37c8e3c55c1c96b49a56012d10f7f0b356e7bfd9 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 20 Jan 2018 13:47:08 -0500 Subject: move elfparse includes to the module itself The elfparse header doesn't require most of these includes, so don't pull them in where they'll pollute other users of the header. Instead move all the headers elfparse.c needs to the source file itself. Bug: None Test: `make check` passes Change-Id: I29377e900b42041f64f6229774ef7c872c74bce0 --- elfparse.c | 7 +++++++ elfparse.h | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/elfparse.c b/elfparse.c index cd032af..4e74816 100644 --- a/elfparse.c +++ b/elfparse.c @@ -3,6 +3,13 @@ * found in the LICENSE file. */ +#include +#include +#include +#include +#include +#include + #include "elfparse.h" int is_elf_magic (const uint8_t *buf) diff --git a/elfparse.h b/elfparse.h index 599eb11..4fdd0a1 100644 --- a/elfparse.h +++ b/elfparse.h @@ -9,13 +9,7 @@ #ifndef _ELFPARSE_H_ #define _ELFPARSE_H_ -#include -#include #include -#include -#include -#include -#include /* * These structs come from elf.h -- cgit v1.2.3