From d299004e0852c5fb02ed85393544fe6a06b231ca Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 13 Mar 2008 18:19:00 +0100 Subject: [PATCH] src/{mbmon,plugin,unixsock}.c: Simple fixes for Solaris 5.8 --- src/mbmon.c | 2 +- src/plugin.c | 1 + src/unixsock.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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) -- 2.11.0