[monitoring-plugins] plugins/negate.c - Function should not return.
Jan Wagner
git at monitoring-plugins.org
Sat Jun 28 22:20:08 CEST 2014
Module: monitoring-plugins
Branch: master
Commit: aa16beb9711c1a235259401e8883f5d807a0a11d
Author: Spenser Reinhardt <sreinhardt at nagios.com>
Committer: Jan Wagner <waja at cyconet.org>
Date: Sun Jun 22 23:10:50 2014 -0500
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=aa16beb
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.
---
plugins/negate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/negate.c b/plugins/negate.c
index 7787d01..d512e34 100644
--- a/plugins/negate.c
+++ b/plugins/negate.c
@@ -44,7 +44,7 @@ const char *email = "devel at monitoring-plugins.org";
/* char *command_line; */
static const char **process_arguments (int, char **);
-int validate_arguments (char **);
+void validate_arguments (char **);
void print_help (void);
void print_usage (void);
int subst_text = FALSE;
@@ -205,7 +205,7 @@ process_arguments (int argc, char **argv)
}
-int
+void
validate_arguments (char **command_line)
{
if (command_line[0] == NULL)
More information about the Commits
mailing list