summaryrefslogtreecommitdiffstats
path: root/src/commonlib
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2021-12-31 18:45:46 +0100
committerMartin L Roth <martinroth@google.com>2022-04-24 18:31:14 +0000
commit56ab5753e0ec94ef1654b05fb0021d41882b4fa8 (patch)
tree57f21dfeab56d7a5b264ecf1be2b5bc83c014830 /src/commonlib
parent7e11a75fd81c16fb42ca4a5f59bc1879c2eb30e5 (diff)
downloadcoreboot-56ab5753e0ec94ef1654b05fb0021d41882b4fa8.tar.gz
coreboot-56ab5753e0ec94ef1654b05fb0021d41882b4fa8.tar.bz2
coreboot-56ab5753e0ec94ef1654b05fb0021d41882b4fa8.zip
commonlib: Replace 'stdlib' with 'stddef'
Include <stddef.h> since we need it for 'size_t'. Unused <stdlib.h> found using: diff <(git grep -l '#include <stdlib.h>' -- src/) <(git grep -l 'memalign(\|malloc(\|calloc(\|free(' -- src/) Change-Id: I3c2668013c16d6771268e8739b1370968c2e120b Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60620 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <martinroth@google.com>
Diffstat (limited to 'src/commonlib')
-rw-r--r--src/commonlib/fsp_relocate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commonlib/fsp_relocate.c b/src/commonlib/fsp_relocate.c
index 5d326b6290a3..421dae9012da 100644
--- a/src/commonlib/fsp_relocate.c
+++ b/src/commonlib/fsp_relocate.c
@@ -18,7 +18,7 @@
#pragma pack(pop)
#include <commonlib/helpers.h>
-#include <stdlib.h>
+#include <stddef.h>
#include <stdint.h>
#include <string.h>