X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-consumerd%2Fhealth-consumerd.cpp;fp=src%2Fbin%2Flttng-consumerd%2Fhealth-consumerd.cpp;h=d0a6ce14fd451e35cc3036533dc8fcb59bc71352;hp=fc4988d682e149f2ad5d774f2b683ff0627885a2;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/src/bin/lttng-consumerd/health-consumerd.cpp b/src/bin/lttng-consumerd/health-consumerd.cpp index fc4988d68..d0a6ce14f 100644 --- a/src/bin/lttng-consumerd/health-consumerd.cpp +++ b/src/bin/lttng-consumerd/health-consumerd.cpp @@ -60,7 +60,7 @@ static int send_unix_sock(int sock, void *buf, size_t len) return lttcomm_send_unix_sock(sock, buf, len); } -static int setup_health_path(void) +static int setup_health_path() { int is_root, ret = 0; enum lttng_consumer_type type; @@ -95,7 +95,7 @@ static int setup_health_path(void) } } else { home_path = utils_get_home_dir(); - if (home_path == NULL) { + if (home_path == nullptr) { /* TODO: Add --socket PATH option */ ERR("Can't get HOME directory for sockets creation."); ret = -EPERM; @@ -224,7 +224,7 @@ void *thread_manage_health_consumerd(void *data __attribute__((unused))) cmm_smp_mb__before_uatomic_dec(); uatomic_dec(<tng_consumer_ready); - while (1) { + while (true) { DBG("Health check ready"); /* Inifinite blocking call, waiting for transmission */ @@ -334,5 +334,5 @@ error: lttng_poll_clean(&events); rcu_unregister_thread(); - return NULL; + return nullptr; }