summaryrefslogtreecommitdiffstats
path: root/lib/utils_base.c
diff options
context:
space:
mode:
authorTon Voon <ton.voon@opsera.com>2010-06-24 09:08:13 (GMT)
committerTon Voon <ton.voon@opsera.com>2010-06-24 09:08:13 (GMT)
commit2ad344a47ba80e1c95e554e78b7a1efe0ab0e86b (patch)
treeea81aacb87a6d93abeec1069b105b3c3c8f2f5b7 /lib/utils_base.c
parent342f3b403e888800fb1b0502bf4e0d8268358573 (diff)
downloadmonitoring-plugins-2ad344a47ba80e1c95e554e78b7a1efe0ab0e86b.tar.gz
Cleanup some warnings displayed from IRIX tinderbox server
Diffstat (limited to 'lib/utils_base.c')
-rw-r--r--lib/utils_base.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/utils_base.c b/lib/utils_base.c
index 6de92cb..1f705d9 100644
--- a/lib/utils_base.c
+++ b/lib/utils_base.c
@@ -471,10 +471,8 @@ void np_enable_state(char *keyname, int expected_data_version) {
471 * if exceptional error. 471 * if exceptional error.
472 */ 472 */
473state_data *np_state_read() { 473state_data *np_state_read() {
474 state_key *my_state_key;
475 state_data *this_state_data=NULL; 474 state_data *this_state_data=NULL;
476 FILE *statefile; 475 FILE *statefile;
477 int c;
478 int rc = FALSE; 476 int rc = FALSE;
479 477
480 if(this_nagios_plugin==NULL) 478 if(this_nagios_plugin==NULL)
@@ -508,7 +506,7 @@ state_data *np_state_read() {
508 * Read the state file 506 * Read the state file
509 */ 507 */
510int _np_state_read_file(FILE *f) { 508int _np_state_read_file(FILE *f) {
511 int c, status=FALSE; 509 int status=FALSE;
512 size_t pos; 510 size_t pos;
513 char *line; 511 char *line;
514 int i; 512 int i;
@@ -585,7 +583,6 @@ void np_state_write_string(time_t data_time, char *data_string) {
585 char *temp_file=NULL; 583 char *temp_file=NULL;
586 int fd=0, result=0; 584 int fd=0, result=0;
587 time_t current_time; 585 time_t current_time;
588 size_t len;
589 char *directories=NULL; 586 char *directories=NULL;
590 char *p=NULL; 587 char *p=NULL;
591 588