X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgmond.c;h=132c138ddfed955b481436f17a577b13ef7aadb6;hb=43d22c19485997e82d28a9ed7ba17965882dc27f;hp=3312f96e898cae7bd9ef77345cd5cf0cac4f2f27;hpb=711f5b6c86f51061c21bedcaa46214a01de0125c;p=collectd.git diff --git a/src/gmond.c b/src/gmond.c index 3312f96e..132c138d 100644 --- a/src/gmond.c +++ b/src/gmond.c @@ -26,9 +26,9 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" -#include "utils_avltree.h" +#include "utils/avltree/avltree.h" +#include "utils/common/common.h" #if HAVE_NETDB_H #include @@ -397,7 +397,7 @@ static staging_entry_t *staging_entry_get(const char *host, /* {{{ */ if (staging_tree == NULL) return NULL; - snprintf(key, sizeof(key), "%s/%s/%s", host, type, + ssnprintf(key, sizeof(key), "%s/%s/%s", host, type, (type_instance != NULL) ? type_instance : ""); se = NULL;