Change in osmo-bts[master]: Fix type mismatch

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Nov 22 09:02:42 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/11867 )

Change subject: Fix type mismatch
......................................................................

Fix type mismatch

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

Change-Id: I81097a64ef694bec046afcc23cf995dc539a706b
---
M src/common/l1sap.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Vadim Yanitskiy: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 8029c88..dba08df 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -149,7 +149,7 @@
 /*! 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);

-- 
To view, visit https://gerrit.osmocom.org/11867
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I81097a64ef694bec046afcc23cf995dc539a706b
Gerrit-Change-Number: 11867
Gerrit-PatchSet: 2
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181122/00427565/attachment.htm>


More information about the gerrit-log mailing list