Fix gcc warnings.
[openssl.git] / apps / s_client.c
index b70777ea3a6ce747c260c7fa85fb34d4d4c64a1e..c4c3b0e94a59b6b6746bd2f061d0b719f35f2218 100644 (file)
@@ -153,6 +153,8 @@ static void sc_usage(void)
 
        }
 
+int MAIN(int, char **);
+
 int MAIN(int argc, char **argv)
        {
        int off=0;
@@ -337,7 +339,7 @@ bad:
                        }
                }
 
-       SSLeay_add_ssl_algorithms();
+       OpenSSL_add_ssl_algorithms();
        SSL_load_error_strings();
        ctx=SSL_CTX_new(meth);
        if (ctx == NULL)
@@ -506,6 +508,7 @@ re_start:
                         * are any keypresses. Note: this is a hack, in a proper
                         * Windows application we wouldn't do this.
                         */
+                       i=0;
                        if(!write_tty) {
                                if(read_tty) {
                                        tv.tv_sec = 1;