diff options
| author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-08 04:33:21 +0000 |
|---|---|---|
| committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-08 04:33:21 +0000 |
| commit | 65ca899d2c98b6342783922a5709c4b61e6b2b1f (patch) | |
| tree | 81bff537f3ba725e1d214d548199868572baf76b /plugins/check_nt.c | |
| parent | 92cd137176830bcdfbd477f151ba22d456b2e31c (diff) | |
| download | monitoring-plugins-65ca899d2c98b6342783922a5709c4b61e6b2b1f.tar.gz | |
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
Diffstat (limited to 'plugins/check_nt.c')
| -rw-r--r-- | plugins/check_nt.c | 6 |
1 files changed, 3 insertions, 3 deletions
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"; | |||
| 65 | 65 | ||
| 66 | int process_arguments(int, char **); | 66 | int process_arguments(int, char **); |
| 67 | void preparelist(char *string); | 67 | void preparelist(char *string); |
| 68 | int strtoularray(unsigned long *array, char *string, char *delim); | 68 | int strtoularray(unsigned long *array, char *string, const char *delim); |
| 69 | void print_help(void); | 69 | void print_help(void); |
| 70 | void print_usage(void); | 70 | void print_usage(void); |
| 71 | 71 | ||
| @@ -117,7 +117,7 @@ int main(int argc, char **argv){ | |||
| 117 | else if(vars_to_check==CHECK_CPULOAD){ | 117 | else if(vars_to_check==CHECK_CPULOAD){ |
| 118 | 118 | ||
| 119 | if (check_value_list==TRUE) { | 119 | if (check_value_list==TRUE) { |
| 120 | if (strtoularray(&lvalue_list,value_list,",")==TRUE) { | 120 | if (strtoularray(lvalue_list,value_list,",")==TRUE) { |
| 121 | /* -l parameters is present with only integers */ | 121 | /* -l parameters is present with only integers */ |
| 122 | return_code=STATE_OK; | 122 | return_code=STATE_OK; |
| 123 | asprintf(&temp_string,_("CPU Load")); | 123 | asprintf(&temp_string,_("CPU Load")); |
| @@ -514,7 +514,7 @@ int process_arguments(int argc, char **argv){ | |||
| 514 | 514 | ||
| 515 | 515 | ||
| 516 | 516 | ||
| 517 | int strtoularray(unsigned long *array, char *string, char *delim) { | 517 | int strtoularray(unsigned long *array, char *string, const char *delim) { |
| 518 | /* split a <delim> delimited string into a long array */ | 518 | /* split a <delim> delimited string into a long array */ |
| 519 | int idx=0; | 519 | int idx=0; |
| 520 | char *t1; | 520 | char *t1; |
