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/network/networkd-link.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/network/networkd-link.h')
-rw-r--r-- | src/network/networkd-link.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.h b/src/network/networkd-link.h index 2809b1fe0b..05b2a2b323 100644 --- a/src/network/networkd-link.h +++ b/src/network/networkd-link.h @@ -186,7 +186,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(Link*, link_unref); #define log_link_full(link, level, error, ...) \ ({ \ - Link *_l = (link); \ + const Link *_l = (link); \ _l ? log_object_internal(level, error, __FILE__, __LINE__, __func__, "INTERFACE=", _l->ifname, ##__VA_ARGS__) : \ log_internal(level, error, __FILE__, __LINE__, __func__, ##__VA_ARGS__); \ }) \ |