summaryrefslogtreecommitdiff
path: root/src/timesync
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-11-18 18:29:16 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2022-11-22 01:30:55 +0100
commit7d1e61cab6d27ed95372a313df3cd4538cf2880e (patch)
tree6a728c8fe92653b263a0092ecb1ec7dcb66207e6 /src/timesync
parent47b3e96647e18e8ca219c4792ab769344eea11bb (diff)
downloadsystemd-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/timesync')
-rw-r--r--src/timesync/timesyncd-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c
index da540856ee..5b076157aa 100644
--- a/src/timesync/timesyncd-manager.c
+++ b/src/timesync/timesyncd-manager.c
@@ -1112,7 +1112,7 @@ int manager_new(Manager **ret) {
.server_socket = -1,
- .ratelimit = (RateLimit) {
+ .ratelimit = (const RateLimit) {
RATELIMIT_INTERVAL_USEC,
RATELIMIT_BURST
},