diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-11-18 13:28:07 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-11-18 14:28:14 +0100 |
commit | ceb4192df6e38538e94e45e84a2d37f6187d7d27 (patch) | |
tree | 48a1bf35e2a19f5f63b584b83784f1552f3e0f50 /src/journal | |
parent | journal: Use consistent naming for iovec in audit logic (diff) | |
download | systemd-ceb4192df6e38538e94e45e84a2d37f6187d7d27.tar.xz systemd-ceb4192df6e38538e94e45e84a2d37f6187d7d27.zip |
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.
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald-audit.c | 8 |
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"); |