diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-08 11:58:29 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-08 12:14:05 +0200 |
commit | 90e74a66e663f1776457d599cb7d5ce44785a56c (patch) | |
tree | 16ce28594b8dc475e37df9a3b80accb96e748efa /src/shared/journal-util.c | |
parent | 12375b95ddcb7dbbcbc5969b87822d39115d8acf (diff) | |
download | systemd-90e74a66e663f1776457d599cb7d5ce44785a56c.tar.gz |
tree-wide: define iterator inside of the macro
Diffstat (limited to 'src/shared/journal-util.c')
-rw-r--r-- | src/shared/journal-util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/journal-util.c b/src/shared/journal-util.c index cb3762df43..4d0edbb7d0 100644 --- a/src/shared/journal-util.c +++ b/src/shared/journal-util.c @@ -85,7 +85,6 @@ int journal_access_blocked(sd_journal *j) { } int journal_access_check_and_warn(sd_journal *j, bool quiet, bool want_other_users) { - Iterator it; void *code; char *path; int r = 0; @@ -107,7 +106,7 @@ int journal_access_check_and_warn(sd_journal *j, bool quiet, bool want_other_use r = log_error_errno(EACCES, "No journal files were opened due to insufficient permissions."); } - HASHMAP_FOREACH_KEY(path, code, j->errors, it) { + HASHMAP_FOREACH_KEY(path, code, j->errors) { int err; err = abs(PTR_TO_INT(code)); |