summaryrefslogtreecommitdiff
path: root/src/lib/selfboot.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2021-12-31 18:46:13 +0100
committerMartin L Roth <martinroth@google.com>2022-04-24 17:43:57 +0000
commit93a195c80f92d1c7b010953de6cc9836cbbb5a4f (patch)
tree1b2754be77ee9968bb5b432532da5a9e9e4ab0b0 /src/lib/selfboot.c
parentc31db09a927e8502fa54aabf870e1703ead75959 (diff)
lib: Remove unused <stdlib.h> and use <types.h> when appropriate
Unused <stdlib.h> found using: diff <(git grep -l '#include <stdlib.h>' -- src/) <(git grep -l 'memalign(\|malloc(\|calloc(\|free(' -- src/) Change-Id: I5ad171679cbfa67d522bd1105fb58e0f84b9cb89 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60621 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <martinroth@google.com>
Diffstat (limited to 'src/lib/selfboot.c')
-rw-r--r--src/lib/selfboot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/selfboot.c b/src/lib/selfboot.c
index 70ab7199dd..637ad13883 100644
--- a/src/lib/selfboot.c
+++ b/src/lib/selfboot.c
@@ -3,8 +3,6 @@
#include <commonlib/bsd/compression.h>
#include <commonlib/endian.h>
#include <console/console.h>
-#include <stdint.h>
-#include <stdlib.h>
#include <string.h>
#include <symbols.h>
#include <cbfs.h>
@@ -13,6 +11,7 @@
#include <program_loading.h>
#include <timestamp.h>
#include <cbmem.h>
+#include <types.h>
/* The type syntax for C is essentially unparsable. -- Rob Pike */
typedef int (*checker_t)(struct cbfs_payload_segment *cbfssegs, void *args);