X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgrpc.cc;h=d9577a462f10c987d621252bfba6e0a3d383df8e;hb=d931e9e904f61e28013c01ee6903985d3c9f0ba8;hp=fd2891f4a7e7971e54c0f77f2191f5b2b1f658e1;hpb=61a4ed99b1a5b6d371bb745933d0efc5dff9505c;p=collectd.git diff --git a/src/grpc.cc b/src/grpc.cc index fd2891f4..d9577a46 100644 --- a/src/grpc.cc +++ b/src/grpc.cc @@ -41,8 +41,8 @@ extern "C" { #include #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #include "daemon/utils_cache.h" } @@ -664,7 +664,7 @@ static int c_grpc_config_listen(oconfig_item_t *ci) { } pkcp.cert_chain = read_file(cert); } else if (!strcasecmp("VerifyPeer", child->key)) { - bool verify = 0; + bool verify = false; if (cf_util_get_boolean(child, &verify)) { return -1; } @@ -747,7 +747,8 @@ static int c_grpc_config_server(oconfig_item_t *ci) { auto callback_name = grpc::string("grpc/") + addr; user_data_t ud = { - .data = client, .free_func = c_grpc_destroy_write_callback, + .data = client, + .free_func = c_grpc_destroy_write_callback, }; plugin_register_write(callback_name.c_str(), c_grpc_write, &ud);