diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-11-18 18:29:16 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2022-11-22 01:30:55 +0100 |
commit | 7d1e61cab6d27ed95372a313df3cd4538cf2880e (patch) | |
tree | 6a728c8fe92653b263a0092ecb1ec7dcb66207e6 /src/journal/journald-server.c | |
parent | 47b3e96647e18e8ca219c4792ab769344eea11bb (diff) | |
download | systemd-7d1e61cab6d27ed95372a313df3cd4538cf2880e.tar.gz |
tree-wide: make constant ratelimit compound actually const
The compiler should recognize that these are constant expressions, but
let's better make this explicit, so that the linker can safely share the
initializations all over the place.
Diffstat (limited to 'src/journal/journald-server.c')
-rw-r--r-- | src/journal/journald-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index e86aa481d9..cb94a037d5 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -83,7 +83,7 @@ #define IDLE_TIMEOUT_USEC (30*USEC_PER_SEC) -#define FAILED_TO_WRITE_ENTRY_RATELIMIT ((RateLimit) { .interval = 1 * USEC_PER_SEC, .burst = 1 }) +#define FAILED_TO_WRITE_ENTRY_RATELIMIT ((const RateLimit) { .interval = 1 * USEC_PER_SEC, .burst = 1 }) static int determine_path_usage( Server *s, |