From 4d2d4c5bb37cc02b892bfcf7632016ef2875ffd3 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 20 Sep 2019 09:00:13 +0200 Subject: [PATCH] tests/nimble_l2cap: fix not needed cast --- tests/nimble_l2cap/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/nimble_l2cap/main.c b/tests/nimble_l2cap/main.c index 3ea1b567e0..13b0a768df 100644 --- a/tests/nimble_l2cap/main.c +++ b/tests/nimble_l2cap/main.c @@ -224,10 +224,10 @@ static int _cmd_inctest(int argc, char **argv) /* parse params */ if (argc >= 2) { - step = (size_t)atoi(argv[1]); + step = atoi(argv[1]); } if (argc >= 3) { - limit = (size_t)atoi(argv[2]); + limit = atoi(argv[2]); if ((limit < 8) || (limit > APP_MTU)) { puts("err: invalid limit payload length given"); return 1; @@ -268,14 +268,14 @@ static int _cmd_floodtest(int argc, char **argv) } if (argc >= 2) { - pktsize = (size_t)atoi(argv[1]); + pktsize = atoi(argv[1]); if ((pktsize < 8) || (pktsize > APP_MTU)) { puts("err: invalid packet size given"); return 1; } } if (argc >= 3) { - limit = (unsigned)atoi(argv[2]); + limit = atoi(argv[2]); } /* now lets flood */