summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-12-18 23:02:24 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-12-18 23:50:37 +0700
commita1473ab10e4c5f1266c53f679f3cd7ea39abc7a7 (patch)
tree547bbe07e8f9409577a60239daefb24d69fc6b70 /src
parente42629e897d7d01f4ff6518fdfe385a12ef1c5b4 (diff)
host/layer23/sap_interface.c: cosmetic: use ARRAY_SIZE()
Diffstat (limited to 'src')
-rw-r--r--src/host/layer23/src/common/sap_interface.c2
1 files changed, 1 insertions, 1 deletions
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 @@ static int sap_parse_result(struct sap_param *param)
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;
}