diff options
Diffstat (limited to 'plugins-root/check_dhcp.c')
-rw-r--r-- | plugins-root/check_dhcp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index 993531cd..72405fea 100644 --- a/plugins-root/check_dhcp.c +++ b/plugins-root/check_dhcp.c | |||
@@ -488,7 +488,6 @@ int get_dhcp_offer(int sock){ | |||
488 | struct sockaddr_in source; | 488 | struct sockaddr_in source; |
489 | struct sockaddr_in via; | 489 | struct sockaddr_in via; |
490 | int result=OK; | 490 | int result=OK; |
491 | int timeout=1; | ||
492 | int responses=0; | 491 | int responses=0; |
493 | int x; | 492 | int x; |
494 | time_t start_time; | 493 | time_t start_time; |
@@ -595,7 +594,6 @@ int get_dhcp_offer(int sock){ | |||
595 | 594 | ||
596 | /* sends a DHCP packet */ | 595 | /* sends a DHCP packet */ |
597 | int send_dhcp_packet(void *buffer, int buffer_size, int sock, struct sockaddr_in *dest){ | 596 | int send_dhcp_packet(void *buffer, int buffer_size, int sock, struct sockaddr_in *dest){ |
598 | struct sockaddr_in myname; | ||
599 | int result; | 597 | int result; |
600 | 598 | ||
601 | result=sendto(sock,(char *)buffer,buffer_size,0,(struct sockaddr *)dest,sizeof(*dest)); | 599 | result=sendto(sock,(char *)buffer,buffer_size,0,(struct sockaddr *)dest,sizeof(*dest)); |