summaryrefslogtreecommitdiffstats
path: root/plugins-root
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-10-03 10:25:48 (GMT)
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-10-03 10:25:48 (GMT)
commit103821efeba4212501475eadcc5a5e5cb2ba9e6f (patch)
tree54bc4a8b069a12e74f08c976f88594b3b0011cb3 /plugins-root
parent64d2459029efb34f418bfd445964c27198724483 (diff)
downloadmonitoring-plugins-103821efeba4212501475eadcc5a5e5cb2ba9e6f.tar.gz
Make some booleans nicer
Diffstat (limited to 'plugins-root')
-rw-r--r--plugins-root/check_dhcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
index ee794b4..5ba9372 100644
--- a/plugins-root/check_dhcp.c
+++ b/plugins-root/check_dhcp.c
@@ -193,8 +193,8 @@ typedef struct requested_server_struct{
193#define ETHERNET_HARDWARE_ADDRESS 1 /* used in htype field of dhcp packet */ 193#define ETHERNET_HARDWARE_ADDRESS 1 /* used in htype field of dhcp packet */
194#define ETHERNET_HARDWARE_ADDRESS_LENGTH 6 /* length of Ethernet hardware addresses */ 194#define ETHERNET_HARDWARE_ADDRESS_LENGTH 6 /* length of Ethernet hardware addresses */
195 195
196bool unicast = 0; /* unicast mode: mimic a DHCP relay */ 196bool unicast = false; /* unicast mode: mimic a DHCP relay */
197bool exclusive = 0; /* exclusive mode aka "rogue DHCP server detection" */ 197bool exclusive = false; /* exclusive mode aka "rogue DHCP server detection" */
198struct in_addr my_ip; /* our address (required for relay) */ 198struct in_addr my_ip; /* our address (required for relay) */
199struct in_addr dhcp_ip; /* server to query (if in unicast mode) */ 199struct in_addr dhcp_ip; /* server to query (if in unicast mode) */
200unsigned char client_hardware_address[MAX_DHCP_CHADDR_LENGTH]=""; 200unsigned char client_hardware_address[MAX_DHCP_CHADDR_LENGTH]="";
@@ -1094,7 +1094,7 @@ int call_getopt(int argc, char **argv){
1094 }; 1094 };
1095 1095
1096 int c=0; 1096 int c=0;
1097 while(1){ 1097 while(true){
1098 c=getopt_long(argc,argv,"+hVvxt:s:r:t:i:m:u",long_options,&option_index); 1098 c=getopt_long(argc,argv,"+hVvxt:s:r:t:i:m:u",long_options,&option_index);
1099 1099
1100 if(c==-1||c==EOF||c==1) 1100 if(c==-1||c==EOF||c==1)