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 */