From 6680f22205e981d2d43141facf600a31a3f278f4 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 12 Jun 2019 16:34:14 +1000 Subject: src/openssl.c: remove some unused variables --- src/openssl.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/openssl.c b/src/openssl.c index 0e74985..790b153 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -9972,7 +9972,6 @@ static int sx_custom_ext_add_cb(SSL *s, unsigned int ext_type, { SSL_CTX *ctx = SSL_get_SSL_CTX(s); lua_State *L = NULL; - int otop, status; *al = SSL_AD_INTERNAL_ERROR; @@ -9998,7 +9997,7 @@ static int sx_custom_ext_add_cb(SSL *s, unsigned int ext_type, lua_pushnil(L); /* call protected helper */ - if (LUA_OK != (status = lua_pcall(L, 6, 2, 0))) + if (LUA_OK != lua_pcall(L, 6, 2, 0)) /* leave error on the stack */ return -1; @@ -10088,8 +10087,6 @@ static int sx_custom_ext_parse_cb(SSL *s, unsigned int ext_type, { SSL_CTX *ctx = SSL_get_SSL_CTX(s); lua_State *L = NULL; - size_t n; - int otop, status; *al = SSL_AD_INTERNAL_ERROR; @@ -10120,7 +10117,7 @@ static int sx_custom_ext_parse_cb(SSL *s, unsigned int ext_type, lua_pushinteger(L, inlen); /* call protected helper */ - if (LUA_OK != (status = lua_pcall(L, 8, 2, 0))) { + if (LUA_OK != lua_pcall(L, 8, 2, 0)) { lua_pop(L, 1); return -1; } -- cgit v1.2.3-59-g8ed1b