fd-tracker: replace custom optional implementation by LTTNG_OPTIONAL
[lttng-tools.git] / src / common / fd-tracker / fd-tracker.c
index fd557393081946b944a958983dc43643f4a2ba55..e7935138843ec5f2dcb9afbd5d1705ab13d4847d 100644 (file)
 
 #include <common/defaults.h>
 #include <common/error.h>
+#include <common/fs-handle-internal.h>
 #include <common/hashtable/hashtable.h>
 #include <common/hashtable/utils.h>
 #include <common/macros.h>
-#include <common/fs-handle-internal.h>
+#include <common/optional.h>
 
 #include "fd-tracker.h"
 #include "inode.h"
@@ -88,10 +89,7 @@ struct fd_tracker {
 
 struct open_properties {
        int flags;
-       struct {
-               bool is_set;
-               mode_t value;
-       } mode;
+       LTTNG_OPTIONAL(mode_t) mode;
 };
 
 /*
This page took 0.024194 seconds and 5 git commands to generate.