summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2021-11-18 12:28:07 +0000
committerDaan De Meyer <daan.j.demeyer@gmail.com>2021-11-18 13:28:14 +0000
commitceb4192df6e38538e94e45e84a2d37f6187d7d27 (patch)
tree48a1bf35e2a19f5f63b584b83784f1552f3e0f50
parent4cdb970b5bf21404c0fcac6bc825a4e6d433bf1c (diff)
downloadsystemd-ceb4192df6e38538e94e45e84a2d37f6187d7d27.tar.gz
journal: Use mf as variable name for MapField
So we can have a variable m for the max iovec size in the next commit like we do in the rest of the journal logic.
-rw-r--r--src/journal/journald-audit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/journal/journald-audit.c b/src/journal/journald-audit.c
index 504a6ec726..e31e5453b8 100644
--- a/src/journal/journald-audit.c
+++ b/src/journal/journald-audit.c
@@ -266,7 +266,7 @@ static int map_all_fields(
for (;;) {
bool mapped = false;
- const MapField *m;
+ const MapField *mf;
const char *v;
p += strspn(p, WHITESPACE);
@@ -301,12 +301,12 @@ static int map_all_fields(
}
/* Try to map the kernel fields to our own names */
- for (m = map_fields; m->audit_field; m++) {
- v = startswith(p, m->audit_field);
+ for (mf = map_fields; mf->audit_field; mf++) {
+ v = startswith(p, mf->audit_field);
if (!v)
continue;
- r = m->map(m->journal_field, &v, iovec, n);
+ r = mf->map(mf->journal_field, &v, iovec, n);
if (r < 0)
return log_debug_errno(r, "Failed to parse audit array: %m");