diff options
author | daurnimator <quae@daurnimator.com> | 2018-05-29 11:19:56 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-05-29 11:27:55 +1000 |
commit | bac568e59ef630d3236f5cd69c5b7ba8fc8f4906 (patch) | |
tree | ec5e437f1d41a7773b5a9068ec2def98290bcfc5 /src | |
parent | 7accb21ce7912fdb257b860cde1b1891d48e1296 (diff) | |
download | luaossl-bac568e59ef630d3236f5cd69c5b7ba8fc8f4906.tar.gz luaossl-bac568e59ef630d3236f5cd69c5b7ba8fc8f4906.tar.bz2 luaossl-bac568e59ef630d3236f5cd69c5b7ba8fc8f4906.zip |
src/openssl.c: ssl_push doesn't need to return anything
Diffstat (limited to 'src')
-rw-r--r-- | src/openssl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/openssl.c b/src/openssl.c index 46a9493..d0011ca 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -765,7 +765,7 @@ static void *loadfield_udata(lua_State *L, int index, const char *k, const char /* Forward declaration */ -static SSL *ssl_push(lua_State *, SSL *); +static void ssl_push(lua_State *, SSL *); /* push an ssl object into lua in a way that is safe from OOM * Lua 5.1 does not support normally returning values from lua_cpcall @@ -8941,13 +8941,11 @@ EXPORT int luaopen__openssl_ssl_context(lua_State *L) { * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -static SSL *ssl_push(lua_State *L, SSL *ssl) { +static void ssl_push(lua_State *L, SSL *ssl) { SSL **ud = prepsimple(L, SSL_CLASS); SSL_up_ref(ssl); *ud = ssl; - - return *ud; } /* ssl_push() */ |