diff options
| author | Spenser Reinhardt <sreinhardt@nagios.com> | 2014-06-22 23:10:50 -0500 |
|---|---|---|
| committer | Jan Wagner <waja@cyconet.org> | 2014-06-28 18:24:08 +0200 |
| commit | aa16beb9711c1a235259401e8883f5d807a0a11d (patch) | |
| tree | e0b04e216f4c61e0943799e823c7cf974dd03109 | |
| parent | 88472d1804d3cd42e0ea8717d75191dfb3e3bbeb (diff) | |
| download | monitoring-plugins-aa16beb9711c1a235259401e8883f5d807a0a11d.tar.gz | |
plugins/negate.c - Function should not return.
Coverity 66479 - validate_arguments has no need to return anything, as it dies on error, yet was set to return an int. Set to void to resolve warning.
| -rw-r--r-- | plugins/negate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/negate.c b/plugins/negate.c index 7787d018..d512e346 100644 --- a/plugins/negate.c +++ b/plugins/negate.c | |||
| @@ -44,7 +44,7 @@ const char *email = "devel@monitoring-plugins.org"; | |||
| 44 | /* char *command_line; */ | 44 | /* char *command_line; */ |
| 45 | 45 | ||
| 46 | static const char **process_arguments (int, char **); | 46 | static const char **process_arguments (int, char **); |
| 47 | int validate_arguments (char **); | 47 | void validate_arguments (char **); |
| 48 | void print_help (void); | 48 | void print_help (void); |
| 49 | void print_usage (void); | 49 | void print_usage (void); |
| 50 | int subst_text = FALSE; | 50 | int subst_text = FALSE; |
| @@ -205,7 +205,7 @@ process_arguments (int argc, char **argv) | |||
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | 207 | ||
| 208 | int | 208 | void |
| 209 | validate_arguments (char **command_line) | 209 | validate_arguments (char **command_line) |
| 210 | { | 210 | { |
| 211 | if (command_line[0] == NULL) | 211 | if (command_line[0] == NULL) |
