From 1c7cbda67a2a120f492d2c95d43410322214f8a6 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 30 Jan 2019 09:06:30 +0100 Subject: [PATCH] core/lldp: fix checking for NM_MORE_ASSERTS It's called NM_MORE_ASSERTS not WITH_MORE_ASSERTS. Also, NM_MORE_ASSERTS is always enabled. It's wrong to check whether it is defined. Fixes: e1e428b21e56cad3c50419e3fe2806dbbb21c976 --- src/devices/nm-lldp-listener.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/nm-lldp-listener.c b/src/devices/nm-lldp-listener.c index da52d90c31..c8751f2ca6 100644 --- a/src/devices/nm-lldp-listener.c +++ b/src/devices/nm-lldp-listener.c @@ -616,7 +616,7 @@ lldp_neighbor_new (sd_lldp_neighbor *neighbor_sd, GError **error) continue; /* skip over leading TLV, OUI and subtype */ -#ifdef WITH_MORE_ASSERTS +#if NM_MORE_ASSERTS > 5 { guint8 check_hdr[] = { 0xfe | (((len - 2) >> 8) & 0x01), ((len - 2) & 0xFF),