From a9c789ccd4e24db3b14ffaf3f57ee3e3a57f6fca Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 5 Jun 2015 11:28:59 +0200 Subject: [PATCH] lib: fix spelling of NL_CAPABILITY_NL_RECV_FAIL_TRUNC_NO_PEEK Instead of NL_CAPABILITY_NL_RECV_FAIL_TRUNK_NO_PEEK. Fixes: bbdcaea9a779885fedc04817dcc11953a377bfd5 Signed-off-by: Thomas Haller --- include/netlink/utils.h | 4 ++-- lib/utils.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/netlink/utils.h b/include/netlink/utils.h index c8b4d2e..4e5adcf 100644 --- a/include/netlink/utils.h +++ b/include/netlink/utils.h @@ -140,8 +140,8 @@ enum { * with NL_MSG_PEEK disabled. Previously, the failed message was wrongly * discarded and the next message received. */ - NL_CAPABILITY_NL_RECV_FAIL_TRUNK_NO_PEEK = 8, -#define NL_CAPABILITY_NL_RECV_FAIL_TRUNK_NO_PEEK NL_CAPABILITY_NL_RECV_FAIL_TRUNK_NO_PEEK + NL_CAPABILITY_NL_RECV_FAIL_TRUNC_NO_PEEK = 8, +#define NL_CAPABILITY_NL_RECV_FAIL_TRUNC_NO_PEEK NL_CAPABILITY_NL_RECV_FAIL_TRUNC_NO_PEEK __NL_CAPABILITY_MAX, NL_CAPABILITY_MAX = (__NL_CAPABILITY_MAX - 1), diff --git a/lib/utils.c b/lib/utils.c index aa0d1e1..56eb556 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -1150,7 +1150,7 @@ int nl_has_capability (int capability) NL_CAPABILITY_ROUTE_LINK_GET_KERNEL_FAIL_OPNOTSUPP, NL_CAPABILITY_ROUTE_ADDR_COMPARE_CACHEINFO, NL_CAPABILITY_VERSION_3_2_26, - NL_CAPABILITY_NL_RECV_FAIL_TRUNK_NO_PEEK), + NL_CAPABILITY_NL_RECV_FAIL_TRUNC_NO_PEEK), /* IMPORTANT: these capability numbers are intended to be universal and stable * for libnl3. Don't allocate new numbers on your own that differ from upstream * libnl3.