X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Ftcp_keep_alive.cpp;fp=src%2Fbin%2Flttng-relayd%2Ftcp_keep_alive.cpp;h=93bc0b396e09a79055cedf5fb829f8e53fccfd16;hp=dec536ed1f6385dd8c25a2e8a53a9cb192d193ca;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/src/bin/lttng-relayd/tcp_keep_alive.cpp b/src/bin/lttng-relayd/tcp_keep_alive.cpp index dec536ed1..93bc0b396 100644 --- a/src/bin/lttng-relayd/tcp_keep_alive.cpp +++ b/src/bin/lttng-relayd/tcp_keep_alive.cpp @@ -129,7 +129,7 @@ static int get_env_int(const char *env_var, const char *value) { int ret; long tmp; - char *endptr = NULL; + char *endptr = nullptr; errno = 0; tmp = strtol(value, &endptr, 0); @@ -493,7 +493,7 @@ error: } /* Initialize the TCP keep-alive configuration. */ -__attribute__((constructor)) static void tcp_keep_alive_init(void) +__attribute__((constructor)) static void tcp_keep_alive_init() { tcp_keep_alive_init_support(&the_support); (void) tcp_keep_alive_init_config(&the_support, &the_config);