1
0
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:
Joakim Nohlgård 2016-07-23 10:05:57 +02:00
parent 9dfd4ccf11
commit 1c5b26c038

View File

@ -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;
}