summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-01-05 14:09:44 +0100
committerHarald Welte <laforge@gnumonks.org>2019-01-07 15:39:52 +0000
commit50d5995137e84644103b077c178a546947b67bdb (patch)
treea9b1e847bb2acc10e6e5c95ff9ef088620ef6952
parentf1a948f71ad7056a54a51b07e111fa5ee4fa5d0b (diff)
layer23/sap_interface.c: terminate value_string definitions
-rw-r--r--src/host/layer23/src/common/sap_interface.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/host/layer23/src/common/sap_interface.c b/src/host/layer23/src/common/sap_interface.c
index 6a85bf2..3faa949 100644
--- a/src/host/layer23/src/common/sap_interface.c
+++ b/src/host/layer23/src/common/sap_interface.c
@@ -60,6 +60,7 @@ static const struct value_string sap_param_names[] = {
{ SAP_CARD_READER_STATUS, "CardReaderStatus" },
{ SAP_STATUS_CHANGE, "StatusChange" },
{ SAP_TRANSPORT_PROTOCOL, "TransportProtocol" },
+ { 0, NULL }
};
/* Table 5.1: Message Overview */
@@ -85,6 +86,7 @@ static const struct value_string sap_msg_names[] = {
{ SAP_ERROR_RESP, "ERROR_RESP" },
{ SAP_SET_TRANSPORT_PROTOCOL_REQ, "SET_TRANSPORT_PROTOCOL_REQ" },
{ SAP_SET_TRANSPORT_PROTOCOL_RESP, "SET_TRANSPORT_PROTOCOL_RESP" },
+ { 0, NULL }
};
/* Table 5.18: Possible values for ResultCode */
@@ -97,6 +99,7 @@ static const struct value_string sap_result_names[] = {
{ 5, "Error, card already powered on" },
{ 6, "Error, data not available" },
{ 7, "Error, not supported "},
+ { 0, NULL }
};
/* Table 5.19: Possible values for StatusChange */
@@ -107,6 +110,7 @@ static const struct value_string sap_status_change_names[] = {
{ 3, "Card removed" },
{ 4, "Card inserted" },
{ 5, "Card recovered" },
+ { 0, NULL }
};
/* Table 5.16: Possible values for ConnectionStatus */
@@ -116,6 +120,7 @@ static const struct value_string sap_status_names[] = {
{ 2, "Error, Server does not support maximum message size" },
{ 3, "Error, maximum message size by Client is too small" },
{ 4, "OK, ongoing call" },
+ { 0, NULL }
};
static struct msgb *sap_create_msg(uint8_t id, uint8_t num_params, struct sap_param *params)