From 65ca899d2c98b6342783922a5709c4b61e6b2b1f Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Fri, 8 Aug 2003 04:33:21 +0000 Subject: fix a variety of compiler warnings about qualifier discards and other pedantic stuff git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@662 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_nt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/check_nt.c') diff --git a/plugins/check_nt.c b/plugins/check_nt.c index 91022bac..22e7757d 100644 --- a/plugins/check_nt.c +++ b/plugins/check_nt.c @@ -65,7 +65,7 @@ const char *progname = "check_nt"; int process_arguments(int, char **); void preparelist(char *string); -int strtoularray(unsigned long *array, char *string, char *delim); +int strtoularray(unsigned long *array, char *string, const char *delim); void print_help(void); void print_usage(void); @@ -117,7 +117,7 @@ int main(int argc, char **argv){ else if(vars_to_check==CHECK_CPULOAD){ if (check_value_list==TRUE) { - if (strtoularray(&lvalue_list,value_list,",")==TRUE) { + if (strtoularray(lvalue_list,value_list,",")==TRUE) { /* -l parameters is present with only integers */ return_code=STATE_OK; asprintf(&temp_string,_("CPU Load")); @@ -514,7 +514,7 @@ int process_arguments(int argc, char **argv){ -int strtoularray(unsigned long *array, char *string, char *delim) { +int strtoularray(unsigned long *array, char *string, const char *delim) { /* split a delimited string into a long array */ int idx=0; char *t1; -- cgit v1.2.3