mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
dist/tools/tunslip6: Change len to size_t in is_sensible_string
This commit is contained in:
parent
9dfd4ccf11
commit
1c5b26c038
4
dist/tools/tunslip/tunslip6.c
vendored
4
dist/tools/tunslip/tunslip6.c
vendored
@ -147,7 +147,7 @@ stamptime(void)
|
||||
}
|
||||
|
||||
int
|
||||
is_sensible_string(const unsigned char *s, int len)
|
||||
is_sensible_string(const unsigned char *s, size_t len)
|
||||
{
|
||||
if(len > 0) {
|
||||
if (s[0] == 0x60) {
|
||||
@ -157,7 +157,7 @@ is_sensible_string(const unsigned char *s, int len)
|
||||
}
|
||||
|
||||
int ret = 0;
|
||||
for (int i = 0; i < len; i++) {
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
if (s[i] == 0 || s[i] == '\r' || s[i] == '\n' || s[i] == '\t') {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user