Fix type mismatch

llist_count() return unsigned value, let's use it for counter as well.

Change-Id: I81097a64ef694bec046afcc23cf995dc539a706b
This commit is contained in:
Max 2018-11-21 21:37:32 +01:00 committed by Harald Welte
parent 70eb683622
commit faf501e432
1 changed files with 1 additions and 1 deletions

View File

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