projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.travis.yml: Add coverity addon.
[collectd.git]
/
src
/
dns.c
diff --git
a/src/dns.c
b/src/dns.c
index
e64af0d
..
3ab456b
100644
(file)
--- a/
src/dns.c
+++ b/
src/dns.c
@@
-29,8
+29,8
@@
#include "common.h"
#include "plugin.h"
#include "common.h"
#include "plugin.h"
-#include <poll.h>
#include "utils_dns.h"
#include "utils_dns.h"
+#include <poll.h>
#include <pcap.h>
#include <pcap.h>
@@
-287,9
+287,7
@@
static int dns_init(void) {
status = plugin_thread_create(&listen_thread, NULL, dns_child_loop, (void *)0,
"dns listen");
if (status != 0) {
status = plugin_thread_create(&listen_thread, NULL, dns_child_loop, (void *)0,
"dns listen");
if (status != 0) {
- char errbuf[1024];
- ERROR("dns plugin: pthread_create failed: %s",
- sstrerror(errno, errbuf, sizeof(errbuf)));
+ ERROR("dns plugin: pthread_create failed: %s", STRERRNO);
return -1;
}
return -1;
}