diff options
author | Mike Frysinger <vapier@google.com> | 2018-01-20 13:47:08 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2018-01-23 22:32:16 -0500 |
commit | 37c8e3c55c1c96b49a56012d10f7f0b356e7bfd9 (patch) | |
tree | 10e73580ded2d55cf50208ee757faf09a9fba9f1 | |
parent | 5b67e0b3e6b52d982876b867a317cd28e6ce1638 (diff) | |
download | minijail-37c8e3c55c1c96b49a56012d10f7f0b356e7bfd9.tar.gz |
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
-rw-r--r-- | elfparse.c | 7 | ||||
-rw-r--r-- | elfparse.h | 6 |
2 files changed, 7 insertions, 6 deletions
@@ -3,6 +3,13 @@ * found in the LICENSE file. */ +#include <elf.h> +#include <endian.h> +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> + #include "elfparse.h" int is_elf_magic (const uint8_t *buf) @@ -9,13 +9,7 @@ #ifndef _ELFPARSE_H_ #define _ELFPARSE_H_ -#include <stdio.h> -#include <stdlib.h> #include <elf.h> -#include <unistd.h> -#include <stdint.h> -#include <endian.h> -#include <string.h> /* * These structs come from elf.h |