diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-04-03 16:43:11 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-04-03 18:03:47 +0200 |
commit | e1dc58fa22b096d55287e841899093ba31c45e8d (patch) | |
tree | b1781b931285c6b79e7694a9a69e8ed1a4ae7f54 | |
parent | 0f5c8eb66f143e4c20a366d887ab2dca3c526758 (diff) |
sccp_sap: Use zero-terminated string for GT digits in osmo_sccp_addr
This is more natural to most application code, so simply go for ASCII
string with NUL-termination rather than an array with explicit length.
Change-Id: I6312208cdfa83184be41157a473c96e9120c63db
-rw-r--r-- | include/osmocom/sigtran/sccp_sap.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/osmocom/sigtran/sccp_sap.h b/include/osmocom/sigtran/sccp_sap.h index 0aa565a..e58e670 100644 --- a/include/osmocom/sigtran/sccp_sap.h +++ b/include/osmocom/sigtran/sccp_sap.h @@ -127,11 +127,10 @@ enum osmo_sccp_ssn { struct osmo_sccp_gt { uint8_t gti; - uint8_t nr_digits; uint8_t tt; uint32_t npi; uint32_t nai; - uint8_t digits[32]; + char digits[32]; }; struct osmo_sccp_addr { |