diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-11-28 23:55:03 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-11-28 23:55:03 +0100 |
commit | 66f43f99340f7e77d6feb0a6dc86302124bd8db2 (patch) | |
tree | c290ac1812ba46337c12bb41dcc0cf7c43f9a145 /plugins | |
parent | 6986aa1d0a352d8d02eed4896034631fffd25a27 (diff) | |
download | monitoring-plugins-66f43f99340f7e77d6feb0a6dc86302124bd8db2.tar.gz |
check_disk: Fix pthread start routine type
The function pointer passed as third argument to pthread_create(3) must
be of type void *(*)(void *).
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_disk.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index a66aaf09..6dbaab46 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -133,7 +133,7 @@ void print_help (void); | |||
133 | void print_usage (void); | 133 | void print_usage (void); |
134 | double calculate_percent(uintmax_t, uintmax_t); | 134 | double calculate_percent(uintmax_t, uintmax_t); |
135 | void stat_path (struct parameter_list *p); | 135 | void stat_path (struct parameter_list *p); |
136 | void do_stat_path (struct parameter_list *p); | 136 | void *do_stat_path (void *p); |
137 | void get_stats (struct parameter_list *p, struct fs_usage *fsp); | 137 | void get_stats (struct parameter_list *p, struct fs_usage *fsp); |
138 | void get_path_stats (struct parameter_list *p, struct fs_usage *fsp); | 138 | void get_path_stats (struct parameter_list *p, struct fs_usage *fsp); |
139 | 139 | ||
@@ -1005,9 +1005,11 @@ stat_path (struct parameter_list *p) | |||
1005 | #endif | 1005 | #endif |
1006 | } | 1006 | } |
1007 | 1007 | ||
1008 | void | 1008 | void * |
1009 | do_stat_path (struct parameter_list *p) | 1009 | do_stat_path (void *in) |
1010 | { | 1010 | { |
1011 | struct parameter_list *p = in; | ||
1012 | |||
1011 | /* Stat entry to check that dir exists and is accessible */ | 1013 | /* Stat entry to check that dir exists and is accessible */ |
1012 | if (verbose >= 3) | 1014 | if (verbose >= 3) |
1013 | printf("calling stat on %s\n", p->name); | 1015 | printf("calling stat on %s\n", p->name); |
@@ -1017,6 +1019,7 @@ do_stat_path (struct parameter_list *p) | |||
1017 | printf("DISK %s - ", _("CRITICAL")); | 1019 | printf("DISK %s - ", _("CRITICAL")); |
1018 | die (STATE_CRITICAL, _("%s %s: %s\n"), p->name, _("is not accessible"), strerror(errno)); | 1020 | die (STATE_CRITICAL, _("%s %s: %s\n"), p->name, _("is not accessible"), strerror(errno)); |
1019 | } | 1021 | } |
1022 | return NULL; | ||
1020 | } | 1023 | } |
1021 | 1024 | ||
1022 | 1025 | ||