summaryrefslogtreecommitdiff
path: root/src/fuzz/fuzz-dhcp-server.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-01-22 09:56:46 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-01-22 09:58:29 +0900
commitdb52db4afa8911516d86f14bba02214238bd6b91 (patch)
tree7d48299ee911ea1f486ec620822ab97fb3760e0f /src/fuzz/fuzz-dhcp-server.c
parent0f3da640de23f59b215af143dbffdf570fb4662d (diff)
downloadsystemd-db52db4afa8911516d86f14bba02214238bd6b91.tar.gz
fuzz: cast to void when return value is ignored
Diffstat (limited to 'src/fuzz/fuzz-dhcp-server.c')
-rw-r--r--src/fuzz/fuzz-dhcp-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzz/fuzz-dhcp-server.c b/src/fuzz/fuzz-dhcp-server.c
index bdebb375df..ba903c7158 100644
--- a/src/fuzz/fuzz-dhcp-server.c
+++ b/src/fuzz/fuzz-dhcp-server.c
@@ -62,7 +62,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
server->bound_leases[pool_offset] = lease;
assert_se(hashmap_put(server->leases_by_client_id, &lease->client_id, lease) >= 0);
- dhcp_server_handle_message(server, (DHCPMessage*)data, size);
+ (void) dhcp_server_handle_message(server, (DHCPMessage*)data, size);
return 0;
}