X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapache.c;h=2da59e7b5297817691c6b4c86a1d70f21785c50f;hb=e746ad785774de37a30302fef65f1c4aaf8698ab;hp=e2f75c180ae219dfeb81d7abfdfa5fda0b54db25;hpb=b165cd13cd30a30ac830df1f6f6fbd52474a6f64;p=collectd.git diff --git a/src/apache.c b/src/apache.c index e2f75c18..2da59e7b 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 "