X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ffd-handle.cpp;h=579757782702f175315254b3003b001e1355bbae;hb=d84afb7e356b5e8c93fdfcd66217fdf36e0f1fd3;hp=d8b5b785d11679d25d045a08e4df0e93592c7072;hpb=a6bc4ca9d659caf016ef932fcd944029737ac57c;p=lttng-tools.git diff --git a/src/common/fd-handle.cpp b/src/common/fd-handle.cpp index d8b5b785d..579757782 100644 --- a/src/common/fd-handle.cpp +++ b/src/common/fd-handle.cpp @@ -8,8 +8,8 @@ #include #include -#include "fd-handle.h" -#include +#include "fd-handle.hpp" +#include struct fd_handle { struct urcu_ref ref; @@ -41,7 +41,7 @@ struct fd_handle *fd_handle_create(int fd) goto end; } - handle = (fd_handle *) zmalloc(sizeof(*handle)); + handle = zmalloc(); if (!handle) { PERROR("Failed to allocate fd_handle"); goto end;