From 911c5e81145e4616fed26730f5db6901852099e3 Mon Sep 17 00:00:00 2001 From: smlng Date: Wed, 21 Dec 2016 14:17:14 +0100 Subject: [PATCH] cppcheck: fix warning in ccn-lite example --- examples/ccn-lite-relay/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/ccn-lite-relay/main.c b/examples/ccn-lite-relay/main.c index 198f57f14..21bce5053 100644 --- a/examples/ccn-lite-relay/main.c +++ b/examples/ccn-lite-relay/main.c @@ -47,10 +47,9 @@ int main(void) /* get the default interface */ kernel_pid_t ifs[GNRC_NETIF_NUMOF]; - size_t ifnum = gnrc_netif_get(ifs); /* set the relay's PID, configure the interface to use CCN nettype */ - if ((ifnum <= 0) || (ccnl_open_netif(ifs[0], GNRC_NETTYPE_CCN) < 0)) { + if ((gnrc_netif_get(ifs) == 0) || (ccnl_open_netif(ifs[0], GNRC_NETTYPE_CCN) < 0)) { puts("Error registering at network interface!"); return -1; }