-Wall implies -Wuninitialized.
[openssl.git] / ssl / s3_meth.c
index 4762b21..d9cd9c2 100644 (file)
@@ -1,5 +1,5 @@
 /* ssl/s3_meth.c */
-/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
  * This package is an SSL implementation written
 #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 == 3)
+       if (ver == SSL3_VERSION)
                return(SSLv3_method());
-       else
+       else 
                return(NULL);
        }
 
-SSL_METHOD *SSLv3_method()
+SSL_METHOD *SSLv3_method(void)
        {
        static int init=1;
        static SSL_METHOD SSLv3_data;