From f2ae7539649ed0f2e2aa3bac8201e789a5e8d49e Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 15 Jul 2014 18:40:49 -0500 Subject: [PATCH] unit: Fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit unit/test-ie.c: In function ‘ie_test’: unit/test-ie.c:70:2: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] --- unit/test-ie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit/test-ie.c b/unit/test-ie.c index a0523666..7c7ad449 100644 --- a/unit/test-ie.c +++ b/unit/test-ie.c @@ -49,7 +49,7 @@ static void ie_test(const void *data) const struct test_data *test = data; struct ie_tlv_iter iter; struct ie *ie; - int count = 0, pos = 0; + unsigned int count = 0, pos = 0; ie_tlv_iter_init(&iter, test->buf, test->len);