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 <hanzjian@zepp.com>
This commit is contained in:
hanzj 2026-05-28 09:31:46 +08:00 committed by Lup Yuen Lee
parent 418cf21224
commit b5b54e7663
2 changed files with 6 additions and 6 deletions

View file

@ -14,7 +14,7 @@ choice
default INTERPRETERS_QUICKJS_NONE default INTERPRETERS_QUICKJS_NONE
config INTERPRETERS_QUICKJS_NONE config INTERPRETERS_QUICKJS_NONE
bool "distable quickjs interpreter" bool "Disable quickjs interpreter"
config INTERPRETERS_QUICKJS_MINI config INTERPRETERS_QUICKJS_MINI
bool "Minimal quickjs interpreter" bool "Minimal quickjs interpreter"
@ -40,11 +40,11 @@ config INTERPRETERS_QUICKJS_STACKSIZE
default 8192 default 8192
config INTERPRETERS_QUICKJS_EXT_HOOK config INTERPRETERS_QUICKJS_EXT_HOOK
bool "External init/destory hook" bool "External init/destroy hook"
default n default n
depends on INTERPRETERS_QUICKJS_MINI depends on INTERPRETERS_QUICKJS_MINI
---help--- ---help---
Since minimal interpreter only support 'console.log', 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 endif # INTERPRETERS_QUICKJS

View file

@ -409,13 +409,13 @@ int nettest_destroy_tcp_lo_server(pthread_t server_tid)
ret = connect(sockfd, (FAR struct sockaddr *)&myaddr, addrlen); ret = connect(sockfd, (FAR struct sockaddr *)&myaddr, addrlen);
if (ret < 0) if (ret < 0)
{ {
goto err_destory; goto err_destroy;
} }
ret = send(sockfd, EXIT_MSG, strlen(EXIT_MSG), 0); ret = send(sockfd, EXIT_MSG, strlen(EXIT_MSG), 0);
if (ret < 0) if (ret < 0)
{ {
goto err_destory; goto err_destroy;
} }
pthread_join(server_tid, NULL); pthread_join(server_tid, NULL);
@ -424,7 +424,7 @@ int nettest_destroy_tcp_lo_server(pthread_t server_tid)
return 0; return 0;
err_destory: err_destroy:
close(sockfd); close(sockfd);
return -errno; return -errno;
} }