From b4736d9a251275cb2742bd2acd541fb07124f32e Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 25 May 2025 08:28:13 +0200 Subject: [PATCH] basic: Move LogRatelimit struct to log-ratelimit.h as well --- src/basic/log-ratelimit.h | 6 ++++++ src/basic/ratelimit.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/basic/log-ratelimit.h b/src/basic/log-ratelimit.h index 8e4a7fbf155..eec08fbf4db 100644 --- a/src/basic/log-ratelimit.h +++ b/src/basic/log-ratelimit.h @@ -4,6 +4,12 @@ #include "log.h" #include "ratelimit.h" +typedef struct LogRateLimit { + int error; + int level; + RateLimit ratelimit; +} LogRateLimit; + #define log_ratelimit_internal(_level, _error, _ratelimit, _file, _line, _func, _format, ...) \ ({ \ int _log_ratelimit_error = (_error); \ diff --git a/src/basic/ratelimit.h b/src/basic/ratelimit.h index ce18354be52..7801ef4270a 100644 --- a/src/basic/ratelimit.h +++ b/src/basic/ratelimit.h @@ -28,9 +28,3 @@ unsigned ratelimit_num_dropped(const RateLimit *rl); usec_t ratelimit_end(const RateLimit *rl); usec_t ratelimit_left(const RateLimit *rl); - -typedef struct LogRateLimit { - int error; - int level; - RateLimit ratelimit; -} LogRateLimit; -- 2.47.3