projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ntpd: Check STA_NANO in the server status
[collectd.git]
/
src
/
unixsock.c
diff --git
a/src/unixsock.c
b/src/unixsock.c
index
795f7ab
..
d4bf004
100644
(file)
--- a/
src/unixsock.c
+++ b/
src/unixsock.c
@@
-36,9
+36,6
@@
#include "utils_cmd_putval.h"
#include "utils_cmd_putnotif.h"
#include "utils_cmd_putval.h"
#include "utils_cmd_putnotif.h"
-/* Folks without pthread will need to disable this plugin. */
-#include <pthread.h>
-
#include <sys/stat.h>
#include <sys/un.h>
#include <sys/stat.h>
#include <sys/un.h>
@@
-368,7
+365,7
@@
static void *us_server_thread (void __attribute__((unused)) *arg)
pthread_exit ((void *) 1);
}
pthread_exit ((void *) 1);
}
- remote_fd =
(int *) malloc (sizeof (int
));
+ remote_fd =
malloc (sizeof (*remote_fd
));
if (remote_fd == NULL)
{
char errbuf[1024];
if (remote_fd == NULL)
{
char errbuf[1024];