From 017d33825f11203d69f11cc7d749a4b6e4cf7d88 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Mon, 5 Jul 2021 10:29:58 +0200 Subject: [PATCH] sys/shell/commands: gnrc_icmpv6_echo: use msg_avail() --- sys/shell/commands/sc_gnrc_icmpv6_echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/shell/commands/sc_gnrc_icmpv6_echo.c b/sys/shell/commands/sc_gnrc_icmpv6_echo.c index 73d799b8ca..8873274ff5 100644 --- a/sys/shell/commands/sc_gnrc_icmpv6_echo.c +++ b/sys/shell/commands/sc_gnrc_icmpv6_echo.c @@ -132,7 +132,7 @@ finish: res = _finish(&data); gnrc_netreg_unregister(GNRC_NETTYPE_ICMPV6, &data.netreg); for (unsigned i = 0; - i < cib_avail(&thread_get_active()->msg_queue); + i < (unsigned)msg_avail(); i++) { msg_t msg;