summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-10-16 09:19:31 (GMT)
committerGitHub <noreply@github.com>2023-10-16 09:19:31 (GMT)
commite23a75d954311b3be429a9020e4d317b89615ee7 (patch)
tree00abea46325decf0c72870ee8f9ec1472e8e5344
parent0fb56b813d0166e6300c69d7576f80fbada5030f (diff)
parent79e2f520942451a3651dbcfebd4672a02c52dcbf (diff)
downloadmonitoring-plugins-e23a75d954311b3be429a9020e4d317b89615ee7.tar.gz
Merge pull request #1940 from RincewindsHat/compiler_warning_unused-but-set-variable
check_dhcp: Fix for -Wunused-but-set-variable
-rw-r--r--plugins-root/check_dhcp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
index 5ba9372..6b07df5 100644
--- a/plugins-root/check_dhcp.c
+++ b/plugins-root/check_dhcp.c
@@ -1064,12 +1064,10 @@ int get_results(void){
1064 1064
1065/* process command-line arguments */ 1065/* process command-line arguments */
1066int process_arguments(int argc, char **argv){ 1066int process_arguments(int argc, char **argv){
1067 int arg_index;
1068
1069 if(argc<1) 1067 if(argc<1)
1070 return ERROR; 1068 return ERROR;
1071 1069
1072 arg_index = call_getopt(argc,argv); 1070 call_getopt(argc,argv);
1073 return validate_arguments(argc); 1071 return validate_arguments(argc);
1074} 1072}
1075 1073