author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 13 May 2008 10:54:48 +0000 (12:54 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 13 May 2008 10:54:48 +0000 (12:54 +0200) |
1 | 2 | |||
---|---|---|---|---|
src/collectd.c | patch | | diff1 | | diff2 | | blob | history |
src/iptables.c | patch | | diff1 | | diff2 | | blob | history |
src/powerdns.c | patch | | diff1 | | diff2 | | blob | history |
src/teamspeak2.c | patch | | diff1 | | diff2 | | blob | history |
src/unixsock.c | patch | | diff1 | | diff2 | | blob | history |
src/utils_cmd_putval.c | patch | | diff1 | | diff2 | | blob | history |
src/utils_threshold.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc src/collectd.c
Simple merge
diff --cc src/iptables.c
Simple merge
diff --cc src/powerdns.c
index 672b505c7af0f1276eea7da0b8a691757e341332,51e39ee245e87b2deb4d9e51e706df1147c26a3e..9d93f93dee4d4c22349195d54ce1b81e61f8e518
--- 1/src/powerdns.c
--- 2/src/powerdns.c
+++ b/src/powerdns.c
break;
}
- if (item->command == NULL)
- {
- ERROR ("powerdns plugin: item->command == NULL.");
- status = -1;
- break;
- }
-
item->sockaddr.sun_family = AF_UNIX;
- sstrncpy (item->sockaddr.sun_path, socket_temp, UNIX_PATH_MAX);
+ sstrncpy (item->sockaddr.sun_path, socket_temp,
+ sizeof (item->sockaddr.sun_path));
e = llentry_create (item->instance, item);
if (e == NULL)
diff --cc src/teamspeak2.c
Simple merge
diff --cc src/unixsock.c
Simple merge
diff --cc src/utils_cmd_putval.c
index 023e4a7111efffc14cd1542e1eeae39a263127d5,755238815f57c15a4e63f9c0a830b8cb1abf05b3..8fbc8de3469325005c4cf6d59dac0eb8d863d2e2
+++ b/src/utils_cmd_putval.c
#include "common.h"
#include "plugin.h"
+ #define print_to_socket(fh, ...) \
+ if (fprintf (fh, __VA_ARGS__) < 0) { \
+ char errbuf[1024]; \
+ WARNING ("handle_putval: failed to write to socket #%i: %s", \
+ fileno (fh), sstrerror (errno, errbuf, sizeof (errbuf))); \
+ return -1; \
+ }
+
static int parse_value (const data_set_t *ds, value_list_t *vl,
- const char *type,
FILE *fh, char *buffer)
{
char *dummy;
diff --cc src/utils_threshold.c
Simple merge