X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Funixsock.c;h=d4bf004731abf3142253a9833a742004f48420a0;hb=6d826c8620babf555d62cabcbd98cb8f96a24413;hp=795f7abe2120f7e4d4930895f9c1af014a7addeb;hpb=82c9b0daf5ff90d01f4a4371f11727cd613e4b01;p=collectd.git diff --git a/src/unixsock.c b/src/unixsock.c index 795f7abe..d4bf0047 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -36,9 +36,6 @@ #include "utils_cmd_putval.h" #include "utils_cmd_putnotif.h" -/* Folks without pthread will need to disable this plugin. */ -#include - #include #include @@ -368,7 +365,7 @@ static void *us_server_thread (void __attribute__((unused)) *arg) pthread_exit ((void *) 1); } - remote_fd = (int *) malloc (sizeof (int)); + remote_fd = malloc (sizeof (*remote_fd)); if (remote_fd == NULL) { char errbuf[1024];