#ifndef WG_FORMAT_NAME
#define WG_FORMAT_NAME(ret, ret_len, vl, prefix, name) \
- wg_format_name (ret, ret_len, (vl)->host, (vl)->plugin, (vl)->plugin_instance, \
- (vl)->type, (vl)->type_instance, prefix, name)
+ wg_format_name (ret, ret_len, (vl)->host, (vl)->plugin, \
+ (vl)->plugin_instance, (vl)->type, \
+ (vl)->type_instance, prefix, name)
#endif
#ifndef WG_SEND_BUF_SIZE
memset (&serv_addr, 0, sizeof (serv_addr));
serv_addr.sin_family = AF_INET;
memcpy (&serv_addr.sin_addr.s_addr,
- cb->server->h_addr,
- cb->server->h_length);
+ cb->server->h_addr,
+ cb->server->h_length);
serv_addr.sin_port = htons(cb->port);
- status = connect(cb->sock_fd, (struct sockaddr *) &serv_addr, sizeof(serv_addr));
+ status = connect(cb->sock_fd,
+ (struct sockaddr *) &serv_addr,
+ sizeof(serv_addr));
if (status < 0)
{
char errbuf[1024];
}
static int wg_format_name (char *ret, int ret_len,
- const char *hostname,
- const char *plugin, const char *plugin_instance,
- const char *type, const char *type_instance,
- const char *prefix, const char *ds_name)
+ const char *hostname,
+ const char *plugin, const char *plugin_instance,
+ const char *type, const char *type_instance,
+ const char *prefix, const char *ds_name)
{
int status;
char *n_hostname;
return (0);
}
-static int wg_send_message (const char* key, const char* value, cdtime_t time, struct wg_callback *cb)
+static int wg_send_message (const char* key, const char* value,
+ cdtime_t time, struct wg_callback *cb)
{
int status;
size_t message_len;
}
static int wg_write_messages (const data_set_t *ds, const value_list_t *vl,
- struct wg_callback *cb)
+ struct wg_callback *cb)
{
char key[10*DATA_MAX_NAME_LEN];
char values[512];
for (i = 0; i < ds->ds_num; i++)
{
/* Copy the identifier to `key' and escape it. */
- status = WG_FORMAT_NAME (key, sizeof (key), vl, cb->prefix, ds->ds[i].name);
+ status = WG_FORMAT_NAME (key, sizeof (key), vl, cb->prefix, \
+ ds->ds[i].name);
if (status != 0)
{
ERROR ("write_graphite plugin: error with format_name");
}
escape_string (key, sizeof (key));
- /* Convert the values to an ASCII representation and put that into
- * `values'. */
+ /* Convert the values to an ASCII representation and put that
+ * into `values'. */
status = wg_format_values (values, sizeof (values), i, ds, vl, 0);
if (status != 0)
{
else
{
ERROR ("write_graphite plugin: Invalid configuration "
- "option: %s.", child->key);
+ "option: %s.", child->key);
}
}