#include <unistd.h>
#include <urcu/ref.h>
-#include "fd-handle.h"
-#include <common/error.h>
+#include "fd-handle.hpp"
+#include <common/error.hpp>
struct fd_handle {
struct urcu_ref ref;
goto end;
}
- handle = (fd_handle *) zmalloc(sizeof(*handle));
+ handle = zmalloc<fd_handle>();
if (!handle) {
PERROR("Failed to allocate fd_handle");
goto end;