diff options
| author | Holger Weiss <hweiss@users.sourceforge.net> | 2007-04-20 17:39:52 +0000 |
|---|---|---|
| committer | Holger Weiss <hweiss@users.sourceforge.net> | 2007-04-20 17:39:52 +0000 |
| commit | 4965affecf59d59a79839393c716d0dfce39a16f (patch) | |
| tree | c9aa9355b56c867ae25a77a21af62e6efc3bcdf8 /plugins | |
| parent | 9b2a0c3d29395059ac380cffd3454535b1692a50 (diff) | |
| download | monitoring-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
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_cluster.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/check_cluster.c b/plugins/check_cluster.c index 9ded4a80..d76bce4e 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 | ||
| 41 | void print_help (void); | ||
| 42 | void print_usage (void); | ||
| 43 | |||
| 41 | int total_services_ok=0; | 44 | int total_services_ok=0; |
| 42 | int total_services_warning=0; | 45 | int total_services_warning=0; |
| 43 | int total_services_unknown=0; | 46 | int total_services_unknown=0; |
| @@ -62,11 +65,9 @@ int process_arguments(int,char **); | |||
| 62 | 65 | ||
| 63 | 66 | ||
| 64 | int main(int argc, char **argv){ | 67 | int 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) |
