fd-tracker: replace custom optional implementation by LTTNG_OPTIONAL
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 23 Jan 2020 22:10:32 +0000 (17:10 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Jan 2020 06:55:34 +0000 (01:55 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Id38724f701ee8aca8f0fecf231d8d4027f0bd885

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.025267 seconds and 4 git commands to generate.