create_server_ssl_connection(): Declare a variable at the beginning of the code block
authorFabian Keil <fk@fabiankeil.de>
Sat, 19 Dec 2020 16:11:42 +0000 (17:11 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sun, 20 Dec 2020 09:59:39 +0000 (10:59 +0100)
commit3b4813587fa2eab6daed2738f455a7145fb31f1e
tree76c78fc4a1f4f97036cf05345536d7bfedca9249
parent0721803ed9b8e7446e7915d4cb53f2284f0631f5
create_server_ssl_connection(): Declare a variable at the beginning of the code block

... to silence:
    cc -c -pipe -fstack-protector-all -ggdb -Wshadow  -Wconversion -I/usr/local/include/  -pthread -Wall -std=c89   openssl.c -o openssl.o
    openssl.c:1144:12: warning: GCC does not allow variable declarations in for loop initializers before C99 [-Wgcc-compat]
          for (int i = 0; i < sk_X509_num(chain); i++)
               ^
openssl.c