diff options
author | Felipe Sateler <fsateler@users.noreply.github.com> | 2016-08-23 06:29:30 -0300 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2016-08-23 12:29:30 +0300 |
commit | 8dec4a9d2d8301102e12f8cf1d9a646e685fb1ea (patch) | |
tree | b94871d30fefafd78887efa2b35b92d1ff5a79e6 /src/core/selinux-access.h | |
parent | 83f12b27d14853e7c89a326f7cd31a6c739d378e (diff) |
core,network: Use const qualifiers for block-local variables in macro functions (#4019)
Prevents discard-qualifiers warnings when the passed variable was const
Diffstat (limited to 'src/core/selinux-access.h')
-rw-r--r-- | src/core/selinux-access.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/selinux-access.h b/src/core/selinux-access.h index 8f1f058a32..f46370d020 100644 --- a/src/core/selinux-access.h +++ b/src/core/selinux-access.h @@ -33,7 +33,7 @@ int mac_selinux_generic_access_check(sd_bus_message *message, const char *path, #define mac_selinux_unit_access_check(unit, message, permission, error) \ ({ \ - Unit *_unit = (unit); \ + const Unit *_unit = (unit); \ mac_selinux_generic_access_check((message), _unit->source_path ?: _unit->fragment_path, (permission), (error)); \ }) |