From 8fe3fc78299dbd5fc3612853a502a99fbaf35451 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Fri, 29 Dec 2023 00:59:58 +0100 Subject: check_dhcp: Make implicit conversion explicit to dismiss warning diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index 6b07df5..4b8f5e2 100644 --- a/plugins-root/check_dhcp.c +++ b/plugins-root/check_dhcp.c @@ -497,7 +497,7 @@ int send_dhcp_discover(int sock){ memcpy(&discover_packet.options[opts],&requested_address,sizeof(requested_address)); opts += sizeof(requested_address); } - discover_packet.options[opts++]=DHCP_OPTION_END; + discover_packet.options[opts++]= (char)DHCP_OPTION_END; /* unicast fields */ if(unicast) -- cgit v0.10-9-g596f