Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozg committed Sep 22, 2023
1 parent 5d21f4b commit 48aefc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ocsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static int openssl_ocsp_request_read(lua_State *L)

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored"-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
OCSP_REQUEST *req = pem ? PEM_read_bio_OCSP_REQUEST(bio, NULL, NULL)
: d2i_OCSP_REQUEST_bio(bio, NULL);
Expand Down Expand Up @@ -361,7 +361,7 @@ static int openssl_ocsp_response_read(lua_State *L)

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored"-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
OCSP_RESPONSE *res = pem ? PEM_read_bio_OCSP_RESPONSE(bio, NULL, NULL)
: d2i_OCSP_RESPONSE_bio(bio, NULL);
Expand Down
2 changes: 1 addition & 1 deletion src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ static int openssl_alpn_select_cb(SSL *ssl, const unsigned char **out, unsigned
while (pos < inlen)
{
int len = in[pos++];
lua_pushlstring(L, in + pos, len);
lua_pushlstring(L, (const char*)in + pos, len);
lua_rawseti(L, -2, index++);
pos += len;
}
Expand Down

0 comments on commit 48aefc2

Please sign in to comment.