From 1c5b26c038573523958766d739804d2d63a4e247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Sat, 23 Jul 2016 10:05:57 +0200 Subject: [PATCH] dist/tools/tunslip6: Change len to size_t in is_sensible_string --- dist/tools/tunslip/tunslip6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/tools/tunslip/tunslip6.c b/dist/tools/tunslip/tunslip6.c index 50fa15bd17..3d454efbc0 100644 --- a/dist/tools/tunslip/tunslip6.c +++ b/dist/tools/tunslip/tunslip6.c @@ -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; }