Code

plugin.c: emit log message when plugin loading succeeds
[collectd.git] / src / daemon / common.c
index 068b9999c6fa7649986268a2707bbb993339970f..8f22011ed57c46c94244f8273461fce3fa7af155 100644 (file)
@@ -46,7 +46,6 @@
 
 /* for getaddrinfo */
 #include <sys/types.h>
-#include <sys/socket.h>
 #include <netdb.h>
 
 #if HAVE_NETINET_IN_H
@@ -356,7 +355,7 @@ int strjoin (char *buffer, size_t buffer_size,
        }
 
        assert (buffer[buffer_size - 1] == 0);
-       return (strlen (buffer));
+       return ((int) strlen (buffer));
 }
 
 int strsubstitute (char *str, char c_from, char c_to)