src/{mbmon,plugin,unixsock}.c: Simple fixes for Solaris 5.8
authorFlorian Forster <octo@noris.net>
Thu, 13 Mar 2008 17:19:00 +0000 (18:19 +0100)
committerFlorian Forster <octo@noris.net>
Thu, 13 Mar 2008 17:19:00 +0000 (18:19 +0100)
src/mbmon.c
src/plugin.c
src/unixsock.c

index bad1a38..50d7363 100644 (file)
@@ -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';
 }
 
index 1dd6daf..0570f0e 100644 (file)
@@ -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)
index 63c3ae9..837a902 100644 (file)
@@ -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)