aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/rand/randtest.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-06-10 16:29:32 +0000
committerBodo Möller <bodo@openssl.org>1999-06-10 16:29:32 +0000
commitd58d092bc9f0a541ce5f0b265ee819f7ab086560 (patch)
tree497575b6ed095b6672e9f17ffb3f20223d3b6b36 /crypto/rand/randtest.c
parent9d9b559ef03e481d2feec5a3a9a28f4a41f8189a (diff)
downloadopenssl-d58d092bc9f0a541ce5f0b265ee819f7ab086560.tar.gz
Avoid warnings.
Diffstat (limited to 'crypto/rand/randtest.c')
-rw-r--r--crypto/rand/randtest.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/crypto/rand/randtest.c b/crypto/rand/randtest.c
index 5722bf746e..f0706d779a 100644
--- a/crypto/rand/randtest.c
+++ b/crypto/rand/randtest.c
@@ -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++;
}