summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2022-07-12 09:54:14 +0300
committerAzat Khuzhin <azat@libevent.org>2022-07-12 09:54:36 +0300
commit33fb0e358a7ae293379d5ecd17d551c8dbef8da2 (patch)
tree3b27bd0a4a27a65b40a565bcdd8f03b89452b491 /test
parent87c016a09e09924ac0c3c516cc6b3196c46ca9f3 (diff)
downloadlibevent-33fb0e358a7ae293379d5ecd17d551c8dbef8da2.tar.gz
test: fix unused variable in rand test (catched by newer clang)
Diffstat (limited to 'test')
-rw-r--r--test/regress_util.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/regress_util.c b/test/regress_util.c
index 95234180..21145366 100644
--- a/test/regress_util.c
+++ b/test/regress_util.c
@@ -935,7 +935,7 @@ test_evutil_rand(void *arg)
char buf1[32];
char buf2[32];
int counts[256];
- int i, j, k, n=0;
+ int i, j, k;
struct evutil_weakrand_state seed = { 12346789U };
memset(buf2, 0, sizeof(buf2));
@@ -956,7 +956,6 @@ test_evutil_rand(void *arg)
memset(buf1, 0, sizeof(buf1));
evutil_secure_rng_get_bytes(buf1 + startpoint,
endpoint-startpoint);
- n += endpoint - startpoint;
for (j=0; j<32; ++j) {
if (j >= startpoint && j < endpoint) {
buf2[j] |= buf1[j];
@@ -982,8 +981,6 @@ test_evutil_rand(void *arg)
tt_int_op(0, <=, r);
tt_int_op(r, <, 9999);
}
-
- /* for (i=0;i<256;++i) { printf("%3d %2d\n", i, counts[i]); } */
end:
;
}