From 602896277c76298bcbc152312d915dec306eda27 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Mon, 21 Jun 2010 13:03:24 +0100 Subject: Change np_state_write_string() to not be a pointer --- lib/utils_base.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/utils_base.c') diff --git a/lib/utils_base.c b/lib/utils_base.c index 5eaf57bd..e6b20c87 100644 --- a/lib/utils_base.c +++ b/lib/utils_base.c @@ -519,7 +519,7 @@ int _np_state_read_file(FILE *f) { * two things writing to same key at same time. * Will die with UNKNOWN if errors */ -void np_state_write_string(time_t *data_time, char *data_string) { +void np_state_write_string(time_t data_time, char *data_string) { FILE *fp; char *temp_file=NULL; int fd=0, result=0; @@ -528,10 +528,10 @@ void np_state_write_string(time_t *data_time, char *data_string) { char *directories=NULL; char *p=NULL; - if(data_time==NULL) + if(data_time==0) time(¤t_time); else - current_time=*data_time; + current_time=data_time; /* If file doesn't currently exist, create directories */ if(access(this_nagios_plugin->state->_filename,F_OK)!=0) { -- cgit v1.2.3-74-g34f1