From: Daan De Meyer Date: Sun, 25 May 2025 06:28:13 +0000 (+0200) Subject: basic: Move LogRatelimit struct to log-ratelimit.h as well X-Git-Tag: v258-rc1~497 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4736d9a251275cb2742bd2acd541fb07124f32e;p=thirdparty%2Fsystemd.git basic: Move LogRatelimit struct to log-ratelimit.h as well --- 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;