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:
parent
f6dc8a3ea8
commit
4d2d4c5bb3
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user