diff options
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 ad673237..2d742349 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 | ||
@@ -1059,8 +1059,8 @@ int process_arguments(int argc, char **argv){ | |||
1059 | return ERROR; | 1059 | return ERROR; |
1060 | 1060 | ||
1061 | arg_index = call_getopt(argc,argv); | 1061 | arg_index = call_getopt(argc,argv); |
1062 | return validate_arguments(argc,arg_index); | 1062 | return validate_arguments(argc); |
1063 | } | 1063 | } |
1064 | 1064 | ||
1065 | 1065 | ||
1066 | 1066 | ||
@@ -1158,13 +1158,13 @@ int call_getopt(int argc, char **argv){ | |||
1158 | } | 1158 | } |
1159 | 1159 | ||
1160 | 1160 | ||
1161 | int validate_arguments(int argc, int arg_index){ | 1161 | int validate_arguments(int argc){ |
1162 | 1162 | ||
1163 | if(argc-optind > 0) | 1163 | if(argc - optind > 0) |
1164 | usage(_("Got unexpected non-option argument")); | 1164 | usage(_("Got unexpected non-option argument")); |
1165 | 1165 | ||
1166 | return OK; | 1166 | return OK; |
1167 | } | 1167 | } |
1168 | 1168 | ||
1169 | 1169 | ||
1170 | #if defined(__sun__) || defined(__solaris__) || defined(__hpux__) | 1170 | #if defined(__sun__) || defined(__solaris__) || defined(__hpux__) |