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>
This commit is contained in:
committed by
Martin L Roth
parent
c31db09a92
commit
93a195c80f
@ -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);
|
||||
|
Reference in New Issue
Block a user