X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Ffd-handle.cpp;h=6cf382757cb01cd9f2792b17b1da81375482681e;hb=cd9adb8b829564212158943a0d279bb35322ab30;hp=6bc1e9b5246e4ab3d6a7bfa0ef342e9c94edf065;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1;p=lttng-tools.git diff --git a/src/common/fd-handle.cpp b/src/common/fd-handle.cpp index 6bc1e9b52..6cf382757 100644 --- a/src/common/fd-handle.cpp +++ b/src/common/fd-handle.cpp @@ -34,7 +34,7 @@ static void fd_handle_release(struct urcu_ref *ref) struct fd_handle *fd_handle_create(int fd) { - struct fd_handle *handle = NULL; + struct fd_handle *handle = nullptr; if (fd < 0) { ERR("Attempted to create an fd_handle from an invalid file descriptor: fd = %d", @@ -81,7 +81,7 @@ int fd_handle_get_fd(struct fd_handle *handle) struct fd_handle *fd_handle_copy(const struct fd_handle *handle) { - struct fd_handle *new_handle = NULL; + struct fd_handle *new_handle = nullptr; const int new_fd = dup(handle->fd); if (new_fd < 0) {