Fix a bunch of gcc warnings in packettest.c
[openssl.git] / test / dtlsv1listentest.c
index b70c60e618056a8c7d9f35bded6c049123aeca44..807bb6d0a1beedde96be4adbc043baa95b4666b4 100644 (file)
@@ -12,7 +12,7 @@
 #include <openssl/bio.h>
 #include <openssl/err.h>
 #include <openssl/conf.h>
-#include "e_os.h"
+#include "internal/nelem.h"
 #include "testutil.h"
 
 #ifndef OPENSSL_NO_SOCK
@@ -348,9 +348,10 @@ static int dtls_listen_test(int i)
 }
 #endif
 
-void register_tests()
+int setup_tests()
 {
 #ifndef OPENSSL_NO_SOCK
     ADD_ALL_TESTS(dtls_listen_test, (int)OSSL_NELEM(testpackets));
 #endif
+    return 1;
 }