X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fpinba.c;h=6879733501cbedaa32cbfaa4afde3ca527771894;hb=HEAD;hp=a6fd06fe2d56352a0a7e29cba18b394dd32559d2;hpb=171d6a4bd5e05b56be83860701d35bfe1373d6a7;p=collectd.git diff --git a/src/pinba.c b/src/pinba.c index a6fd06fe..68797335 100644 --- a/src/pinba.c +++ b/src/pinba.c @@ -617,7 +617,7 @@ static int plugin_config (oconfig_item_t *ci) /* {{{ */ if (strcasecmp ("Address", child->key) == 0) cf_util_get_string (child, &conf_node); else if (strcasecmp ("Port", child->key) == 0) - cf_util_get_string (child, &conf_service); + cf_util_get_service (child, &conf_service); else if (strcasecmp ("View", child->key) == 0) pinba_config_view (child); else @@ -645,7 +645,7 @@ static int plugin_init (void) /* {{{ */ if (collector_thread_running) return (0); - status = pthread_create (&collector_thread_id, + status = plugin_thread_create (&collector_thread_id, /* attrs = */ NULL, collector_thread, /* args = */ NULL);