Avoid warnings.
[openssl.git] / crypto / rand / randtest.c
index ac3f0d7..f0706d7 100644 (file)
@@ -1,5 +1,5 @@
 /* crypto/rand/randtest.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
@@ -58,7 +58,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include "rand.h"
+#include <openssl/rand.h>
 
 /* some FIPS 140-1 random number test */
 /* some simple tests */
@@ -117,7 +117,7 @@ int main()
        /* test 1 */
        if (!((9654 < n1) && (n1 < 10346)))
                {
-               printf("test 1 failed, X=%ld\n",n1);
+               printf("test 1 failed, X=%lu\n",n1);
                err++;
                }
        printf("test 1 done\n");
@@ -150,37 +150,37 @@ int main()
                {
                if (!((2267 < runs[i][0]) && (runs[i][0] < 2733)))
                        {
-                       printf("test 3 failed, bit=%d run=%d num=%ld\n",
+                       printf("test 3 failed, bit=%d run=%d num=%lu\n",
                                i,1,runs[i][0]);
                        err++;
                        }
                if (!((1079 < runs[i][1]) && (runs[i][1] < 1421)))
                        {
-                       printf("test 3 failed, bit=%d run=%d num=%ld\n",
+                       printf("test 3 failed, bit=%d run=%d num=%lu\n",
                                i,2,runs[i][1]);
                        err++;
                        }
                if (!(( 502 < runs[i][2]) && (runs[i][2] <  748)))
                        {
-                       printf("test 3 failed, bit=%d run=%d num=%ld\n",
+                       printf("test 3 failed, bit=%d run=%d num=%lu\n",
                                i,3,runs[i][2]);
                        err++;
                        }
                if (!(( 223 < runs[i][3]) && (runs[i][3] <  402)))
                        {
-                       printf("test 3 failed, bit=%d run=%d num=%ld\n",
+                       printf("test 3 failed, bit=%d run=%d num=%lu\n",
                                i,4,runs[i][3]);
                        err++;
                        }
                if (!((  90 < runs[i][4]) && (runs[i][4] <  223)))
                        {
-                       printf("test 3 failed, bit=%d run=%d num=%ld\n",
+                       printf("test 3 failed, bit=%d run=%d num=%lu\n",
                                i,5,runs[i][4]);
                        err++;
                        }
                if (!((  90 < runs[i][5]) && (runs[i][5] <  223)))
                        {
-                       printf("test 3 failed, bit=%d run=%d num=%ld\n",
+                       printf("test 3 failed, bit=%d run=%d num=%lu\n",
                                i,6,runs[i][5]);
                        err++;
                        }
@@ -190,13 +190,13 @@ int main()
        /* test 4 */
        if (runs[0][33] != 0)
                {
-               printf("test 4 failed, bit=%d run=%d num=%ld\n",
+               printf("test 4 failed, bit=%d run=%d num=%lu\n",
                        0,34,runs[0][33]);
                err++;
                }
        if (runs[1][33] != 0)
                {
-               printf("test 4 failed, bit=%d run=%d num=%ld\n",
+               printf("test 4 failed, bit=%d run=%d num=%lu\n",
                        1,34,runs[1][33]);
                err++;
                }