core: use uniform style for RateLimit initialization

RateLimit is designed so that we can always initialize only the first two
fields explicitly. All other call sites use a single line for this.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2023-11-22 12:32:31 +00:00
committed by Luca Boccassi
parent b2bd488e76
commit fed25720ef
5 changed files with 8 additions and 14 deletions
+1 -2
View File
@@ -100,8 +100,7 @@ static void socket_init(Unit *u) {
s->control_pid = PIDREF_NULL;
s->control_command_id = _SOCKET_EXEC_COMMAND_INVALID;
s->trigger_limit.interval = USEC_INFINITY;
s->trigger_limit.burst = UINT_MAX;
s->trigger_limit = RATELIMIT_OFF;
s->poll_limit_interval = USEC_INFINITY;
s->poll_limit_burst = UINT_MAX;