Change in osmocom-bb[master]: host/layer23/sap_interface.c: cosmetic: use ARRAY_SIZE()

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

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Tue Dec 18 16:50:51 UTC 2018


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/12351


Change subject: host/layer23/sap_interface.c: cosmetic: use ARRAY_SIZE()
......................................................................

host/layer23/sap_interface.c: cosmetic: use ARRAY_SIZE()

Change-Id: I3a2908bf11300ec681beddb5a54f9a62ca5430ae
---
M src/host/layer23/src/common/sap_interface.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/51/12351/1

diff --git a/src/host/layer23/src/common/sap_interface.c b/src/host/layer23/src/common/sap_interface.c
index 936beb3..a32c3aa 100644
--- a/src/host/layer23/src/common/sap_interface.c
+++ b/src/host/layer23/src/common/sap_interface.c
@@ -177,7 +177,7 @@
 				get_value_string(sap_result_names, param->value[0]));
 	}
 
-	if(param->value[0] > sizeof(sap_result_names)/sizeof(struct value_string)){
+	if(param->value[0] > ARRAY_SIZE(sap_result_names)){
 		return -1;
 	}
 

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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3a2908bf11300ec681beddb5a54f9a62ca5430ae
Gerrit-Change-Number: 12351
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181218/ad479308/attachment.htm>


More information about the gerrit-log mailing list