From: Florian Forster Date: Thu, 23 Aug 2012 07:03:35 +0000 (+0200) Subject: AUTHORS: Add Thomas Meson. X-Git-Tag: collectd-5.2.0~79 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d8dd9e6d7c1d2be550fc2d79bc917a0c6beebce2;p=collectd.git AUTHORS: Add Thomas Meson. Add Florian Forster to the list of copyright holders and authors of utils_format_graphite.c, since its based on his code. --- diff --git a/AUTHORS b/AUTHORS index 90560e34..78dbad14 100644 --- a/AUTHORS +++ b/AUTHORS @@ -200,6 +200,9 @@ Sven Trenkel - netapp plugin. - python plugin. +Thomas Meson + - Graphite support for the AMQP plugin. + Tomasz Pala - conntrack plugin. diff --git a/src/utils_format_graphite.c b/src/utils_format_graphite.c index b0ebc1eb..49a59c50 100644 --- a/src/utils_format_graphite.c +++ b/src/utils_format_graphite.c @@ -1,6 +1,7 @@ /** * collectd - src/utils_format_graphite.c * Copyright (C) 2012 Thomas Meson + * Copyright (C) 2012 Florian octo Forster * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -15,8 +16,9 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - * Author: + * Authors: * Thomas Meson + * Florian octo Forster **/ #include "collectd.h" @@ -75,7 +77,7 @@ static int gr_format_values (char *ret, size_t ret_len, return (0); } -static void copy_escape_part (char *dst, const char *src, size_t dst_len, +static void gr_copy_escape_part (char *dst, const char *src, size_t dst_len, char escape_char) { size_t i; @@ -124,15 +126,15 @@ static int gr_format_name (char *ret, int ret_len, if (postfix == NULL) postfix = ""; - copy_escape_part (n_host, vl->host, + gr_copy_escape_part (n_host, vl->host, sizeof (n_host), escape_char); - copy_escape_part (n_plugin, vl->plugin, + gr_copy_escape_part (n_plugin, vl->plugin, sizeof (n_plugin), escape_char); - copy_escape_part (n_plugin_instance, vl->plugin_instance, + gr_copy_escape_part (n_plugin_instance, vl->plugin_instance, sizeof (n_plugin_instance), escape_char); - copy_escape_part (n_type, vl->type, + gr_copy_escape_part (n_type, vl->type, sizeof (n_type), escape_char); - copy_escape_part (n_type_instance, vl->type_instance, + gr_copy_escape_part (n_type_instance, vl->type_instance, sizeof (n_type_instance), escape_char); if (n_plugin_instance[0] != '\0')