Module: monitoring-plugins
Branch: master
Commit: 8fe3fc78299dbd5fc3612853a502a99fbaf35451
Author: RincewindsHat <[email protected]>
Date: Fri Dec 29 00:59:58 2023 +0100
URL:
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=8fe3fc7
check_dhcp: Make implicit conversion explicit to dismiss warning
---
plugins-root/check_dhcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)