summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-05-31 11:36:30 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-05-31 14:51:46 +0200
commitababbc44817748ceef79198cecddcc59341510d3 (patch)
treee31efe4453ba4c34cc719f2407f47d5718a0fc17 /devel
parentdbbbb05cbe9f09e1ac6a700761988095ee428c11 (diff)
downloadgnutls-ababbc44817748ceef79198cecddcc59341510d3.tar.gz
tests: eliminated build warnings
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'devel')
-rw-r--r--devel/fuzz/gnutls_client_fuzzer.cc2
-rw-r--r--devel/fuzz/gnutls_server_fuzzer.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/devel/fuzz/gnutls_client_fuzzer.cc b/devel/fuzz/gnutls_client_fuzzer.cc
index 5a198ce9ea..7719502230 100644
--- a/devel/fuzz/gnutls_client_fuzzer.cc
+++ b/devel/fuzz/gnutls_client_fuzzer.cc
@@ -38,7 +38,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
res = socketpair(AF_UNIX, SOCK_STREAM, 0, socket_fds);
assert(res >= 0);
ssize_t send_res = send(socket_fds[1], data, size, 0);
- assert(send_res == size);
+ assert((size_t)send_res == size);
res = shutdown(socket_fds[1], SHUT_WR);
assert(res == 0);
diff --git a/devel/fuzz/gnutls_server_fuzzer.cc b/devel/fuzz/gnutls_server_fuzzer.cc
index 1d1f87d195..546ab14b15 100644
--- a/devel/fuzz/gnutls_server_fuzzer.cc
+++ b/devel/fuzz/gnutls_server_fuzzer.cc
@@ -208,7 +208,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
res = socketpair(AF_UNIX, SOCK_STREAM, 0, socket_fds);
assert(res >= 0);
ssize_t send_res = send(socket_fds[1], data, size, 0);
- assert(send_res == size);
+ assert((size_t)send_res == size);
res = shutdown(socket_fds[1], SHUT_WR);
assert(res == 0);