diff options
author | tb <> | 2020-10-16 17:57:20 +0000 |
---|---|---|
committer | tb <> | 2020-10-16 17:57:20 +0000 |
commit | 9956f974abc14600dcab12fb333f98932cd50fd2 (patch) | |
tree | 41908413049c077f19104e0196d219eacb7f4430 /src | |
parent | 02e3c352953d6092e9148dfaca026fa935952d0f (diff) | |
download | openbsd-9956f974abc14600dcab12fb333f98932cd50fd2.tar.gz openbsd-9956f974abc14600dcab12fb333f98932cd50fd2.tar.bz2 openbsd-9956f974abc14600dcab12fb333f98932cd50fd2.zip |
Add an explicit cast to make this test compile and pass with gcc.
gcc emits a signed vs unsigned comparison warning which breaks the build
due to -Werror.
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libssl/dtls/dtlstest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libssl/dtls/dtlstest.c b/src/regress/lib/libssl/dtls/dtlstest.c index c25800be19..ae8075f709 100644 --- a/src/regress/lib/libssl/dtls/dtlstest.c +++ b/src/regress/lib/libssl/dtls/dtlstest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dtlstest.c,v 1.3 2020/10/15 18:05:06 jsing Exp $ */ | 1 | /* $OpenBSD: dtlstest.c,v 1.4 2020/10/16 17:57:20 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2020 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2020 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -100,7 +100,7 @@ bio_packet_monkey_ctrl(BIO *bio, int cmd, long num, void *ptr) | |||
100 | return 1; | 100 | return 1; |
101 | 101 | ||
102 | case BIO_C_DROP_RANDOM: | 102 | case BIO_C_DROP_RANDOM: |
103 | if (num < 0 || num > UINT_MAX) | 103 | if (num < 0 || (size_t)num > UINT_MAX) |
104 | return 0; | 104 | return 0; |
105 | ctx->drop_rand = (unsigned int)num; | 105 | ctx->drop_rand = (unsigned int)num; |
106 | return 1; | 106 | return 1; |