From f2a88059e71edf291d1666c106c3470ace8fd202 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Fri, 10 Jan 2025 21:39:44 +0800 Subject: [PATCH] tools/nxstyle.c: Add missing zlib function names to white list The zlib compression functions are used in network utilities for compression/decompression. These functions need to be added to the nxstyle white list to prevent style checking errors since they follow the zlib naming convention rather than NuttX's style guide. Specifically, these functions are used in: - apps/netutils/telnetc/telnetc.c for compressed data handling Signed-off-by: Huang Qi --- tools/nxstyle.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 9774849b4e..1937976398 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -617,6 +617,17 @@ static const char *g_white_content_list[] = "unzGetCurrentFileInfo64", "unzGoToNextFile", "unzGoToFirstFile", + + /* Ref: + * apps/netutils/telnetc/telnetc.c + */ + + "deflateInit", + "deflateEnd", + "inflateInit", + "inflateEnd", + "zError", + NULL };