[PATCH] openbsc[master]: openbsc: use _NUM_CHREQ_T to define the size of ctype_by_chreq

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/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Tue Mar 14 12:55:31 UTC 2017


Review at  https://gerrit.osmocom.org/2054

openbsc: use _NUM_CHREQ_T to define the size of ctype_by_chreq

Make it future compatible for changes. Otherwise it will break
when additional enums are adding to chreq in libosmocore.

Change-Id: I2acab2af8d67bccb2bc495512c1f259ae649a832
---
M openbsc/include/openbsc/gsm_data.h
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/54/2054/1

diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index a36083a..01e9363 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -360,7 +360,7 @@
 		enum rrlp_mode mode;
 	} rrlp;
 
-	enum gsm_chan_t ctype_by_chreq[16];
+	enum gsm_chan_t ctype_by_chreq[_NUM_CHREQ_T];
 
 	/* Use a TCH for handling requests of type paging any */
 	int pag_any_tch;

-- 
To view, visit https://gerrit.osmocom.org/2054
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2acab2af8d67bccb2bc495512c1f259ae649a832
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>



More information about the gerrit-log mailing list