From faf501e432e7884b084f430e07c5a49abdb85601 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 21 Nov 2018 21:37:32 +0100 Subject: Fix type mismatch llist_count() return unsigned value, let's use it for counter as well. Change-Id: I81097a64ef694bec046afcc23cf995dc539a706b --- src/common/l1sap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/l1sap.c') diff --git a/src/common/l1sap.c b/src/common/l1sap.c index 8029c88e..dba08dfb 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -149,7 +149,7 @@ static uint32_t fn_ms_adj(uint32_t fn, const struct gsm_lchan *lchan) /*! limit number of queue entries to %u; drops any surplus messages */ static void queue_limit_to(const char *prefix, struct llist_head *queue, unsigned int limit) { - int count = llist_count(queue); + unsigned int count = llist_count(queue); if (count > limit) LOGP(DL1P, LOGL_NOTICE, "%s: freeing %d queued frames\n", prefix, count-limit); -- cgit v1.2.3