summaryrefslogtreecommitdiffstats
path: root/include/osmocom/sigtran/sccp_sap.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-04-03 16:43:11 +0200
committerHarald Welte <laforge@gnumonks.org>2017-04-10 10:41:16 +0200
commit3d2aa4a5c0474b140cdb94d6edb7f34bd328f979 (patch)
tree3c8265eaf3d650c9ca3df7e11c943007d2df01db /include/osmocom/sigtran/sccp_sap.h
parent6023bcae16b1dfb21f0b515de4aba8669e006b0f (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
Diffstat (limited to 'include/osmocom/sigtran/sccp_sap.h')
-rw-r--r--include/osmocom/sigtran/sccp_sap.h3
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 {