From: Florian Forster Date: Thu, 13 Mar 2008 17:19:00 +0000 (+0100) Subject: src/{mbmon,plugin,unixsock}.c: Simple fixes for Solaris 5.8 X-Git-Tag: collectd-4.3.2~18^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d299004e0852c5fb02ed85393544fe6a06b231ca;p=collectd.git src/{mbmon,plugin,unixsock}.c: Simple fixes for Solaris 5.8 --- diff --git a/src/mbmon.c b/src/mbmon.c index bad1a388..50d73632 100644 --- a/src/mbmon.c +++ b/src/mbmon.c @@ -240,7 +240,7 @@ static void trim_spaces (char *s) { size_t l; - for (l = strlen (s) - 1; (l > 0) && isspace (s[l]); l--) + for (l = strlen (s) - 1; (l > 0) && isspace ((int) s[l]); l--) s[l] = '\0'; } diff --git a/src/plugin.c b/src/plugin.c index 1dd6daf3..0570f0ee 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -234,6 +234,7 @@ static void *plugin_read_thread (void *args) pthread_mutex_unlock (&read_lock); pthread_exit (NULL); + return ((void *) 0); } /* void *plugin_read_thread */ static void start_threads (int num) diff --git a/src/unixsock.c b/src/unixsock.c index 63c3ae95..837a9021 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -618,6 +618,7 @@ static void *us_handle_client (void *arg) close (fd); pthread_exit ((void *) 0); + return ((void *) 0); } /* void *us_handle_client */ static void *us_server_thread (void *arg)