Borland C++ Builder 5 complains about unreachable statements.
[openssl.git] / crypto / md2 / md2test.c
index 78901475ebe0668c0d1dafc126bb7565a641506e..901d0a7d8ea6130df702911aa1288f155153c7e1 100644 (file)
@@ -59,6 +59,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <openssl/md2.h>
+
+#include "../e_os.h"
 
 #ifdef OPENSSL_NO_MD2
 int main(int argc, char *argv[])
@@ -107,7 +110,7 @@ int main(int argc, char *argv[])
        i=1;
        while (*P != NULL)
                {
-               EVP_Digest((unsigned char *)*P,(unsigned long)strlen(*P),md,NULL,EVP_md2());
+               EVP_Digest((unsigned char *)*P,(unsigned long)strlen(*P),md,NULL,EVP_md2(), NULL);
                p=pt(md);
                if (strcmp(p,*R) != 0)
                        {
@@ -121,8 +124,7 @@ int main(int argc, char *argv[])
                R++;
                P++;
                }
-       exit(err);
-       return(0);
+       EXIT(err);
        }
 
 static char *pt(unsigned char *md)