summaryrefslogtreecommitdiff
path: root/src/journal/journald-context.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2022-12-05 14:29:29 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2022-12-05 14:41:51 +0100
commitd9799ea2e2cbf4e67975e8184f4090d98ccf571f (patch)
tree75b180e54bb372c5405bf6ea3b92c2164d22c9e2 /src/journal/journald-context.c
parentcfef0734a1994d3f45c8a58efd2530d89c1368f4 (diff)
downloadsystemd-d9799ea2e2cbf4e67975e8184f4090d98ccf571f.tar.gz
journal: Use shared log ratelimit constant
Instead of maintaining two different constants, move the constant to journal-internal.h and share it between files.
Diffstat (limited to 'src/journal/journald-context.c')
-rw-r--r--src/journal/journald-context.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/journal/journald-context.c b/src/journal/journald-context.c
index 6d58422ddd..b2f6fcc2a3 100644
--- a/src/journal/journald-context.c
+++ b/src/journal/journald-context.c
@@ -12,6 +12,7 @@
#include "fileio.h"
#include "fs-util.h"
#include "io-util.h"
+#include "journal-internal.h"
#include "journal-util.h"
#include "journald-context.h"
#include "parse-util.h"
@@ -771,7 +772,7 @@ void client_context_acquire_default(Server *s) {
r = client_context_acquire(s, ucred.pid, &ucred, NULL, 0, NULL, &s->my_context);
if (r < 0)
- log_ratelimit_warning_errno(r, JOURNALD_LOG_RATELIMIT,
+ log_ratelimit_warning_errno(r, JOURNAL_LOG_RATELIMIT,
"Failed to acquire our own context, ignoring: %m");
}
@@ -781,7 +782,7 @@ void client_context_acquire_default(Server *s) {
r = client_context_acquire(s, 1, NULL, NULL, 0, NULL, &s->pid1_context);
if (r < 0)
- log_ratelimit_warning_errno(r, JOURNALD_LOG_RATELIMIT,
+ log_ratelimit_warning_errno(r, JOURNAL_LOG_RATELIMIT,
"Failed to acquire PID1's context, ignoring: %m");
}