From d3c49ee062f761cb4ad272c1300ebb5dfd932c9a Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 14 Aug 2025 12:38:29 +0200 Subject: [PATCH] lsclocks: use MAX_CLOCKS, improve indention Let's follow the kernel and use MAX_CLOCKS to define CLOCK_AUX. Signed-off-by: Karel Zak --- misc-utils/lsclocks.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/misc-utils/lsclocks.c b/misc-utils/lsclocks.c index 946b88be1..8c6118162 100644 --- a/misc-utils/lsclocks.c +++ b/misc-utils/lsclocks.c @@ -48,43 +48,43 @@ static inline clockid_t FD_TO_CLOCKID(int fd) } #ifndef CLOCK_REALTIME -#define CLOCK_REALTIME 0 +# define CLOCK_REALTIME 0 #endif #ifndef CLOCK_MONOTONIC -#define CLOCK_MONOTONIC 1 +# define CLOCK_MONOTONIC 1 #endif #ifndef CLOCK_MONOTONIC_RAW -#define CLOCK_MONOTONIC_RAW 4 +# define CLOCK_MONOTONIC_RAW 4 #endif #ifndef CLOCK_REALTIME_COARSE -#define CLOCK_REALTIME_COARSE 5 +# define CLOCK_REALTIME_COARSE 5 #endif #ifndef CLOCK_MONOTONIC_COARSE -#define CLOCK_MONOTONIC_COARSE 6 +# define CLOCK_MONOTONIC_COARSE 6 #endif #ifndef CLOCK_BOOTTIME -#define CLOCK_BOOTTIME 7 +# define CLOCK_BOOTTIME 7 #endif #ifndef CLOCK_REALTIME_ALARM -#define CLOCK_REALTIME_ALARM 8 +# define CLOCK_REALTIME_ALARM 8 #endif #ifndef CLOCK_BOOTTIME_ALARM -#define CLOCK_BOOTTIME_ALARM 9 +# define CLOCK_BOOTTIME_ALARM 9 #endif #ifndef CLOCK_TAI -#define CLOCK_TAI 11 +# define CLOCK_TAI 11 #endif #ifndef CLOCK_AUX -#define CLOCK_AUX 16 +# define CLOCK_AUX MAX_CLOCKS #endif #define CLOCK_AUX0 (CLOCK_AUX + 0) -- 2.47.2