}
new_sock = lttcomm_alloc_sock(sock->proto);
- if (new_sock == NULL) {
+ if (new_sock == nullptr) {
goto error;
}
error:
free(new_sock);
- return NULL;
+ return nullptr;
}
/*
buf[size_ret] = '\0';
errno = 0;
- r_val = strtol(buf, NULL, 10);
+ r_val = strtol(buf, nullptr, 10);
if (errno != 0 || r_val < -1L) {
val = 0;
goto error_close;
return val;
}
-void lttcomm_inet_init(void)
+void lttcomm_inet_init()
{
unsigned long syn_retries, fin_timeout, syn_timeout, env;