summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <hweiss@users.sourceforge.net>2007-04-20 17:39:52 (GMT)
committerHolger Weiss <hweiss@users.sourceforge.net>2007-04-20 17:39:52 (GMT)
commit4965affecf59d59a79839393c716d0dfce39a16f (patch)
treec9aa9355b56c867ae25a77a21af62e6efc3bcdf8
parent9b2a0c3d29395059ac380cffd3454535b1692a50 (diff)
downloadmonitoring-plugins-4965affecf59d59a79839393c716d0dfce39a16f.tar.gz
Predeclare functions and remove unused variables.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1695 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_cluster.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/check_cluster.c b/plugins/check_cluster.c
index 9ded4a8..d76bce4 100644
--- a/plugins/check_cluster.c
+++ b/plugins/check_cluster.c
@@ -38,6 +38,9 @@ const char *email = "nagiosplug-devel@lists.sourceforge.net";
38#define CHECK_SERVICES 1 38#define CHECK_SERVICES 1
39#define CHECK_HOSTS 2 39#define CHECK_HOSTS 2
40 40
41void print_help (void);
42void print_usage (void);
43
41int total_services_ok=0; 44int total_services_ok=0;
42int total_services_warning=0; 45int total_services_warning=0;
43int total_services_unknown=0; 46int total_services_unknown=0;
@@ -62,11 +65,9 @@ int process_arguments(int,char **);
62 65
63 66
64int main(int argc, char **argv){ 67int main(int argc, char **argv){
65 char input_buffer[MAX_INPUT_BUFFER];
66 char *ptr; 68 char *ptr;
67 int data_val; 69 int data_val;
68 int return_code=STATE_OK; 70 int return_code=STATE_OK;
69 int error=FALSE;
70 thresholds *thresholds; 71 thresholds *thresholds;
71 72
72 if(process_arguments(argc,argv)==ERROR) 73 if(process_arguments(argc,argv)==ERROR)