-Wall implies -Wuninitialized.
[openssl.git] / ssl / s3_meth.c
index 3d66b46..d9cd9c2 100644 (file)
 #include "objects.h"
 #include "ssl_locl.h"
 
-static SSL_METHOD *ssl3_get_method(ver)
-int ver;
+#ifndef NOPROTO
+static SSL_METHOD *ssl3_get_method(int ver);
+#else
+static SSL_METHOD *ssl3_get_method();
+#endif
+
+static SSL_METHOD *ssl3_get_method(int ver)
        {
        if (ver == SSL3_VERSION)
                return(SSLv3_method());
@@ -69,7 +74,7 @@ int ver;
                return(NULL);
        }
 
-SSL_METHOD *SSLv3_method()
+SSL_METHOD *SSLv3_method(void)
        {
        static int init=1;
        static SSL_METHOD SSLv3_data;