From b56c785640c1b7efdd4af93014eaa3919c1894b1 Mon Sep 17 00:00:00 2001 From: hongfengchen Date: Thu, 22 May 2025 10:54:17 +0800 Subject: [PATCH] testing: add missing header files Add missing header files in netutils and lsan modules to fix implicit function declarations and improve compilation compatibility. Signed-off-by: hongfengchen --- .codespellrc | 3 +++ netutils/codecs/md5.c | 1 + netutils/ftpd/ftpd.c | 1 + system/lsan/lsan_main.c | 1 + 4 files changed, 6 insertions(+) diff --git a/.codespellrc b/.codespellrc index 442f4656c..ac22a4c37 100644 --- a/.codespellrc +++ b/.codespellrc @@ -8,3 +8,6 @@ exclude-file = .codespell-ignore-lines # Ignore complete files (e.g. legal text or other immutable material). skip = LICENSE, + +# Ignore words list (FTP protocol commands and technical terms) +ignore-words-list = ALLO diff --git a/netutils/codecs/md5.c b/netutils/codecs/md5.c index 75dfe3f0c..dade6abd1 100644 --- a/netutils/codecs/md5.c +++ b/netutils/codecs/md5.c @@ -53,6 +53,7 @@ #include #include #include +#include #include "netutils/md5.h" diff --git a/netutils/ftpd/ftpd.c b/netutils/ftpd/ftpd.c index 12491030a..4f5cc4667 100644 --- a/netutils/ftpd/ftpd.c +++ b/netutils/ftpd/ftpd.c @@ -48,6 +48,7 @@ #include #include #include +#include #include #include #include diff --git a/system/lsan/lsan_main.c b/system/lsan/lsan_main.c index d0c8a06ea..f4a1f8579 100644 --- a/system/lsan/lsan_main.c +++ b/system/lsan/lsan_main.c @@ -26,6 +26,7 @@ #include #include +#include /**************************************************************************** * Public Functions