From 18a6dc57861f2c6535c7a2d17e6df6d6f6261ff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E4=BB=94?= <41766775+huahua132@users.noreply.github.com> Date: Wed, 10 Apr 2024 13:51:03 +0800 Subject: [PATCH] typo rename faild to failed (#1901) --- HISTORY.md | 2 +- lualib-src/ltls.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 846a470f..ef8c3a50 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -352,7 +352,7 @@ v0.6.0 (2014-8-18) * add sharedata * bugfix: service exit before init would not report back * add skynet.response and check multicall skynet.ret -* skynet.newservice throw error when lanuch faild +* skynet.newservice throw error when lanuch failed * Don't check imported function in snax.hotfix * snax service add change SERVICE_PATH and add it to package.path * skynet.redirect support string address diff --git a/lualib-src/ltls.c b/lualib-src/ltls.c index bf3c3c9a..efac8bbc 100644 --- a/lualib-src/ltls.c +++ b/lualib-src/ltls.c @@ -35,18 +35,18 @@ static void _init_bio(lua_State* L, struct tls_context* tls_p, struct ssl_ctx* ctx_p) { tls_p->ssl = SSL_new(ctx_p->ctx); if(!tls_p->ssl) { - luaL_error(L, "SSL_new faild"); + luaL_error(L, "SSL_new failed"); } tls_p->in_bio = BIO_new(BIO_s_mem()); if(!tls_p->in_bio) { - luaL_error(L, "new in bio faild"); + luaL_error(L, "new in bio failed"); } BIO_set_mem_eof_return(tls_p->in_bio, -1); /* see: https://www.openssl.org/docs/crypto/BIO_s_mem.html */ tls_p->out_bio = BIO_new(BIO_s_mem()); if(!tls_p->out_bio) { - luaL_error(L, "new out bio faild"); + luaL_error(L, "new out bio failed"); } BIO_set_mem_eof_return(tls_p->out_bio, -1); /* see: https://www.openssl.org/docs/crypto/BIO_s_mem.html */ @@ -330,7 +330,7 @@ lnew_ctx(lua_State* L) { unsigned int err = ERR_get_error(); char buf[256]; ERR_error_string_n(err, buf, sizeof(buf)); - luaL_error(L, "SSL_CTX_new client faild. %s\n", buf); + luaL_error(L, "SSL_CTX_new client failed. %s\n", buf); } if(luaL_newmetatable(L, "_TLS_SSLCTX_METATABLE_")) {