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 <[email protected]>