diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-07-23 20:19:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-23 20:19:34 (GMT) |
commit | c47f44d897680d09841f8e787964de40063ea34c (patch) | |
tree | fb1b30300a6bffb423733e9c3bf250e649054a25 /plugins-root/check_dhcp.c | |
parent | 068c124f361d4c615aed79f6fe607f39040b2e31 (diff) | |
parent | af06d34071608641295eecd46edb0c4dbde13872 (diff) | |
download | monitoring-plugins-c47f44d897680d09841f8e787964de40063ea34c.tar.gz |
Merge branch 'master' into compiler_warning_part_5
Diffstat (limited to 'plugins-root/check_dhcp.c')
-rw-r--r-- | plugins-root/check_dhcp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index 147db6b..2d22619 100644 --- a/plugins-root/check_dhcp.c +++ b/plugins-root/check_dhcp.c | |||
@@ -229,7 +229,7 @@ struct in_addr requested_address; | |||
229 | 229 | ||
230 | int process_arguments(int, char **); | 230 | int process_arguments(int, char **); |
231 | int call_getopt(int, char **); | 231 | int call_getopt(int, char **); |
232 | int validate_arguments(int, int); | 232 | int validate_arguments(int); |
233 | void print_usage(void); | 233 | void print_usage(void); |
234 | void print_help(void); | 234 | void print_help(void); |
235 | 235 | ||
@@ -1055,8 +1055,8 @@ int process_arguments(int argc, char **argv){ | |||
1055 | return ERROR; | 1055 | return ERROR; |
1056 | 1056 | ||
1057 | arg_index = call_getopt(argc,argv); | 1057 | arg_index = call_getopt(argc,argv); |
1058 | return validate_arguments(argc,arg_index); | 1058 | return validate_arguments(argc); |
1059 | } | 1059 | } |
1060 | 1060 | ||
1061 | 1061 | ||
1062 | 1062 | ||
@@ -1154,13 +1154,13 @@ int call_getopt(int argc, char **argv){ | |||
1154 | } | 1154 | } |
1155 | 1155 | ||
1156 | 1156 | ||
1157 | int validate_arguments(int argc, int arg_index){ | 1157 | int validate_arguments(int argc){ |
1158 | 1158 | ||
1159 | if(argc-optind > 0) | 1159 | if(argc - optind > 0) |
1160 | usage(_("Got unexpected non-option argument")); | 1160 | usage(_("Got unexpected non-option argument")); |
1161 | 1161 | ||
1162 | return OK; | 1162 | return OK; |
1163 | } | 1163 | } |
1164 | 1164 | ||
1165 | 1165 | ||
1166 | #if defined(__sun__) || defined(__solaris__) || defined(__hpux__) | 1166 | #if defined(__sun__) || defined(__solaris__) || defined(__hpux__) |