[PATCH 2/2] src/stat_item.c: fix cast

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/OpenBSC@lists.osmocom.org/.

Alexander Huemer alexander.huemer at xx.vu
Fri Nov 6 19:55:25 UTC 2015


---
 src/stat_item.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/stat_item.c b/src/stat_item.c
index 0545ea0..7017523 100644
--- a/src/stat_item.c
+++ b/src/stat_item.c
@@ -81,7 +81,7 @@ struct osmo_stat_item_group *osmo_stat_item_group_alloc(void *ctx,
 		size = (size + sizeof(void *) - 1) & ~(sizeof(void *) - 1);
 
 		/* Store offsets into the item array */
-		group->items[item_idx] = (void *)items_size;
+		group->items[item_idx] = (struct osmo_stat_item *)items_size;
 
 		items_size += size;
 	}
-- 
2.6.2




More information about the OpenBSC mailing list