summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-03-02 15:43:30 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-03-04 21:45:45 -0500
commit72e551f40b0bcc6f59b093b70424f3af32ed759b (patch)
tree65127b27d23fc1c324a9023745b1cc8417def6b9 /src
parentb3ad5fa944245c8dd57980271aaf840acaf31881 (diff)
networkctl: use ETHER_ADDR_NULL in one more place
Diffstat (limited to 'src')
-rw-r--r--src/network/networkctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 0679114f74..e5b08d4826 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -147,7 +147,6 @@ static int link_info_compare(const void *a, const void *b) {
}
static int decode_link(sd_netlink_message *m, LinkInfo *info) {
- static const struct ether_addr null_address = {};
const char *name;
uint16_t type;
int r;
@@ -178,7 +177,7 @@ static int decode_link(sd_netlink_message *m, LinkInfo *info) {
info->has_mac_address =
sd_netlink_message_read_ether_addr(m, IFLA_ADDRESS, &info->mac_address) >= 0 &&
- memcmp(&info->mac_address, &null_address, sizeof(struct ether_addr)) != 0;
+ memcmp(&info->mac_address, &ETHER_ADDR_NULL, sizeof(struct ether_addr)) != 0;
info->has_mtu =
sd_netlink_message_read_u32(m, IFLA_MTU, &info->mtu) &&