diff options
author | Jakub Jelen <jjelen@redhat.com> | 2020-05-04 14:20:59 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-05-05 14:29:16 +0200 |
commit | 4149cebd64a916e934a1485b75f464e26c9bf4ea (patch) | |
tree | 962c6aac873099c2ecc4ee9ae93b032d4a91a960 /tests/fuzz/ssh_server_fuzzer.cpp | |
parent | 425c02cb9437f87daa817e3b62c4a3f5226daf37 (diff) | |
download | libssh-4149cebd64a916e934a1485b75f464e26c9bf4ea.tar.gz libssh-4149cebd64a916e934a1485b75f464e26c9bf4ea.tar.xz libssh-4149cebd64a916e934a1485b75f464e26c9bf4ea.zip |
fuzz: Avoid warnings from csbuild in fuzzers
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/fuzz/ssh_server_fuzzer.cpp')
-rw-r--r-- | tests/fuzz/ssh_server_fuzzer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fuzz/ssh_server_fuzzer.cpp b/tests/fuzz/ssh_server_fuzzer.cpp index b96d46bc..26498df6 100644 --- a/tests/fuzz/ssh_server_fuzzer.cpp +++ b/tests/fuzz/ssh_server_fuzzer.cpp @@ -73,6 +73,7 @@ static int auth_none(ssh_session session, const char *user, void *userdata) (struct session_data_struct *)userdata; (void)session; + (void)user; if (sdata->auth_attempts > 0) { sdata->authenticated = true; @@ -146,7 +147,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) assert(rc == 0); nwritten = send(socket_fds[1], data, size, 0); - assert(nwritten == size); + assert((size_t)nwritten == size); rc = shutdown(socket_fds[1], SHUT_WR); assert(rc == 0); |