clang-tidy: add Chrome-inspired checks
[lttng-tools.git] / src / common / health / health.cpp
index 7682131e760e5aa53ad5bd7dd99ee1168214a031..1969ea44c5e2629ca147d270abb99731b2e23bd3 100644 (file)
@@ -66,14 +66,14 @@ struct health_app *health_app_create(int nr_types)
 
        ha = zmalloc<health_app>();
        if (!ha) {
 
        ha = zmalloc<health_app>();
        if (!ha) {
-               return NULL;
+               return nullptr;
        }
        ha->flags = calloc<health_flags>(nr_types);
        if (!ha->flags) {
                goto error_flags;
        }
        CDS_INIT_LIST_HEAD(&ha->list);
        }
        ha->flags = calloc<health_flags>(nr_types);
        if (!ha->flags) {
                goto error_flags;
        }
        CDS_INIT_LIST_HEAD(&ha->list);
-       pthread_mutex_init(&ha->lock, NULL);
+       pthread_mutex_init(&ha->lock, nullptr);
        ha->nr_types = nr_types;
        ha->time_delta.tv_sec = DEFAULT_HEALTH_CHECK_DELTA_S;
        ha->time_delta.tv_nsec = DEFAULT_HEALTH_CHECK_DELTA_NS;
        ha->nr_types = nr_types;
        ha->time_delta.tv_sec = DEFAULT_HEALTH_CHECK_DELTA_S;
        ha->time_delta.tv_nsec = DEFAULT_HEALTH_CHECK_DELTA_NS;
@@ -82,7 +82,7 @@ struct health_app *health_app_create(int nr_types)
 
 error_flags:
        free(ha);
 
 error_flags:
        free(ha);
-       return NULL;
+       return nullptr;
 }
 
 void health_app_destroy(struct health_app *ha)
 }
 
 void health_app_destroy(struct health_app *ha)
This page took 0.022646 seconds and 4 git commands to generate.