From 04aaed6f86cc29073e65c0bc87ae675dcc619ae2 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 8 Jan 2021 11:55:43 +0100 Subject: [PATCH] sys/shell/nimble_netif: don't cast result of atoi --- sys/shell/commands/sc_nimble_netif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/shell/commands/sc_nimble_netif.c b/sys/shell/commands/sc_nimble_netif.c index 94b1a13ad0..f6e85a8c6e 100644 --- a/sys/shell/commands/sc_nimble_netif.c +++ b/sys/shell/commands/sc_nimble_netif.c @@ -441,7 +441,7 @@ int _nimble_netif_handler(int argc, char **argv) if (!fmt_is_number(argv[2])) { unsigned duration = DEFAULT_SCAN_DURATION; if (argc > 3) { - duration = (unsigned)atoi(argv[3]); + duration = atoi(argv[3]); } _cmd_connect_name(argv[2], duration * 1000); return 0;