summaryrefslogtreecommitdiffstats
path: root/plugins-root/check_dhcp.c
diff options
context:
space:
mode:
authorLorenz <12514511+RincewindsHat@users.noreply.github.com>2023-05-08 18:24:11 (GMT)
committerGitHub <noreply@github.com>2023-05-08 18:24:11 (GMT)
commit869cca59d857fde53b5a435cb8390f54058e8687 (patch)
treebc9aa773537691078fdac52222c0a8d34882629d /plugins-root/check_dhcp.c
parent72d34baf718e12a88e978c69369b96baf63ef97a (diff)
parent6c78f0b5ea82a4bea71ae2024f27d3916175a7a2 (diff)
downloadmonitoring-plugins-869cca59d857fde53b5a435cb8390f54058e8687.tar.gz
Merge pull request #1866 from RincewindsHat/compiler_warning_part_1
Compiler warning part 1
Diffstat (limited to 'plugins-root/check_dhcp.c')
-rw-r--r--plugins-root/check_dhcp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
index ad67323..147db6b 100644
--- a/plugins-root/check_dhcp.c
+++ b/plugins-root/check_dhcp.c
@@ -470,10 +470,6 @@ int send_dhcp_discover(int sock){
470 packet_xid=random(); 470 packet_xid=random();
471 discover_packet.xid=htonl(packet_xid); 471 discover_packet.xid=htonl(packet_xid);
472 472
473 /**** WHAT THE HECK IS UP WITH THIS?!? IF I DON'T MAKE THIS CALL, ONLY ONE SERVER RESPONSE IS PROCESSED!!!! ****/
474 /* downright bizzarre... */
475 ntohl(discover_packet.xid);
476
477 /*discover_packet.secs=htons(65535);*/ 473 /*discover_packet.secs=htons(65535);*/
478 discover_packet.secs=0xFF; 474 discover_packet.secs=0xFF;
479 475