From b5b54e7663c5672cc62be2d60d73432584314d36 Mon Sep 17 00:00:00 2001 From: hanzj Date: Thu, 28 May 2026 09:31:46 +0800 Subject: [PATCH] interpreters/quickjs,testing/nettest: fix typos in Kconfig and source. Fix spelling errors in QuickJS Kconfig and nettest source: * "distable" -> "disable" in INTERPRETERS_QUICKJS_NONE description * "destory" -> "destroy" in INTERPRETERS_QUICKJS_EXT_HOOK option and help text (2 occurrences) * "err_destory" -> "err_destroy" label in nettest_tcpserver.c (3 occurrences: 2 goto targets and 1 label definition) These are cosmetic fixes with no functional change. Signed-off-by: hanzj --- interpreters/quickjs/Kconfig | 6 +++--- testing/nettest/utils/nettest_tcpserver.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/interpreters/quickjs/Kconfig b/interpreters/quickjs/Kconfig index cc10f7799..43a31c055 100644 --- a/interpreters/quickjs/Kconfig +++ b/interpreters/quickjs/Kconfig @@ -14,7 +14,7 @@ choice default INTERPRETERS_QUICKJS_NONE config INTERPRETERS_QUICKJS_NONE - bool "distable quickjs interpreter" + bool "Disable quickjs interpreter" config INTERPRETERS_QUICKJS_MINI bool "Minimal quickjs interpreter" @@ -40,11 +40,11 @@ config INTERPRETERS_QUICKJS_STACKSIZE default 8192 config INTERPRETERS_QUICKJS_EXT_HOOK - bool "External init/destory hook" + bool "External init/destroy hook" default n depends on INTERPRETERS_QUICKJS_MINI ---help--- Since minimal interpreter only support 'console.log', - you can export custom module by implement init/destory hook. + you can export custom module by implement init/destroy hook. endif # INTERPRETERS_QUICKJS diff --git a/testing/nettest/utils/nettest_tcpserver.c b/testing/nettest/utils/nettest_tcpserver.c index c31acf8b4..a11f41d92 100644 --- a/testing/nettest/utils/nettest_tcpserver.c +++ b/testing/nettest/utils/nettest_tcpserver.c @@ -409,13 +409,13 @@ int nettest_destroy_tcp_lo_server(pthread_t server_tid) ret = connect(sockfd, (FAR struct sockaddr *)&myaddr, addrlen); if (ret < 0) { - goto err_destory; + goto err_destroy; } ret = send(sockfd, EXIT_MSG, strlen(EXIT_MSG), 0); if (ret < 0) { - goto err_destory; + goto err_destroy; } pthread_join(server_tid, NULL); @@ -424,7 +424,7 @@ int nettest_destroy_tcp_lo_server(pthread_t server_tid) return 0; -err_destory: +err_destroy: close(sockfd); return -errno; }