From: Jérémie Galarneau Date: Thu, 23 Jan 2020 22:10:32 +0000 (-0500) Subject: fd-tracker: replace custom optional implementation by LTTNG_OPTIONAL X-Git-Tag: v2.12.0-rc1~40 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1e4f5625e7341134c8e9ac32843afd1ca1e71a21;p=lttng-tools.git fd-tracker: replace custom optional implementation by LTTNG_OPTIONAL Signed-off-by: Jérémie Galarneau Change-Id: Id38724f701ee8aca8f0fecf231d8d4027f0bd885 --- diff --git a/src/common/fd-tracker/fd-tracker.c b/src/common/fd-tracker/fd-tracker.c index fd5573930..e79351388 100644 --- a/src/common/fd-tracker/fd-tracker.c +++ b/src/common/fd-tracker/fd-tracker.c @@ -28,10 +28,11 @@ #include #include +#include #include #include #include -#include +#include #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; }; /*