From bdd03c20d5b1cd7ca17e2559a44ddcf1da06f3be Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Mon, 27 May 2024 11:20:07 +0200 Subject: tree: Use for snprintf header is used for input/output operations (such as printf, scanf, fopen, etc.). Although some input/output functions can manipulate strings, they do not need to directly include because they are declared independently. Change-Id: Ibe2a4ff6f68843a6d99cfdfe182cf2dd922802aa Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/82665 Reviewed-by: Yidi Lin Tested-by: build bot (Jenkins) --- src/include/stdio.h | 3 +-- src/include/string.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/stdio.h b/src/include/stdio.h index d59b9411ee..fe7cb58668 100644 --- a/src/include/stdio.h +++ b/src/include/stdio.h @@ -1,8 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /** - * Note: This file is only for POSIX compatibility, and is meant to be - * chain-included via string.h. + * Note: This file is only for POSIX compatibility. */ #ifndef STDIO_H diff --git a/src/include/string.h b/src/include/string.h index 4a06556d6d..33f0dfe196 100644 --- a/src/include/string.h +++ b/src/include/string.h @@ -4,7 +4,6 @@ #define STRING_H #include -#include /* IWYU pragma: export */ void *memcpy(void *dest, const void *src, size_t n); void *memmove(void *dest, const void *src, size_t n); -- cgit v1.2.3