1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/nimble_l2cap: fix not needed cast

This commit is contained in:
Alexandre Abadie 2019-09-20 09:00:13 +02:00
parent f6dc8a3ea8
commit 4d2d4c5bb3
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

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