From 3d2aa4a5c0474b140cdb94d6edb7f34bd328f979 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 3 Apr 2017 16:43:11 +0200 Subject: 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 --- include/osmocom/sigtran/sccp_sap.h | 3 +-- 1 file changed, 1 insertion(+), 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 { -- cgit v1.2.3