diff options
author | Max <msuraev@sysmocom.de> | 2018-11-21 21:37:32 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-11-22 09:02:41 +0000 |
commit | faf501e432e7884b084f430e07c5a49abdb85601 (patch) | |
tree | 20ac7d6ce6550193da369d03da0897aef92193b6 /src/common/l1sap.c | |
parent | 70eb683622f92c273c196a36daa61abd5de63f89 (diff) |
Fix type mismatch
llist_count() return unsigned value, let's use it for counter as well.
Change-Id: I81097a64ef694bec046afcc23cf995dc539a706b
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r-- | src/common/l1sap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |