From bac568e59ef630d3236f5cd69c5b7ba8fc8f4906 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 29 May 2018 11:19:56 +1000 Subject: src/openssl.c: ssl_push doesn't need to return anything --- src/openssl.c | 6 ++---- 1 file 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() */ -- cgit v1.2.3-59-g8ed1b