X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fapache.c;fp=src%2Fapache.c;h=650760c3f14847cb168d6addea0f95cbbdea4723;hp=92c2c8be6c130174d7924d66c5cd20da983fe34f;hb=7f38ca96e3a54a4b02475f857c7d79c6a1257ada;hpb=d83bdb92ce4dbda05dcb7112c4e9fea1a17a3e22 diff --git a/src/apache.c b/src/apache.c index 92c2c8be..650760c3 100644 --- a/src/apache.c +++ b/src/apache.c @@ -219,17 +219,18 @@ static int config_add(oconfig_item_t *ci) { if (status == 0) { char callback_name[3 * DATA_MAX_NAME_LEN]; - ssnprintf(callback_name, sizeof(callback_name), "apache/%s/%s", - (st->host != NULL) ? st->host : hostname_g, - (st->name != NULL) ? st->name : "default"); + snprintf(callback_name, sizeof(callback_name), "apache/%s/%s", + (st->host != NULL) ? st->host : hostname_g, + (st->name != NULL) ? st->name : "default"); status = plugin_register_complex_read( /* group = */ NULL, /* name = */ callback_name, /* callback = */ apache_read_host, - /* interval = */ 0, &(user_data_t){ - .data = st, .free_func = apache_free, - }); + /* interval = */ 0, + &(user_data_t){ + .data = st, .free_func = apache_free, + }); } if (status != 0) { @@ -313,8 +314,8 @@ static int init_host(apache_t *st) /* {{{ */ static char credentials[1024]; int status; - status = ssnprintf(credentials, sizeof(credentials), "%s:%s", st->user, - (st->pass == NULL) ? "" : st->pass); + status = snprintf(credentials, sizeof(credentials), "%s:%s", st->user, + (st->pass == NULL) ? "" : st->pass); if ((status < 0) || ((size_t)status >= sizeof(credentials))) { ERROR("apache plugin: init_host: Returning an error " "because the credentials have been "