summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-03 16:18:37 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-03 16:18:37 +0200
commita164d5291e238668003c88fa963310371750d6d8 (patch)
treeb5f571a9c479dccc022fc43cd84ae9ae28e903db
parent1eba7de0c2469de52b2941efcc2eabb04f54e55b (diff)
nat: Fix compiler warning and cast uint16_t to uint8_t
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_ussd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_ussd.c b/openbsc/src/osmo-bsc_nat/bsc_ussd.c
index 59f76e4..e0c5c6d 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_ussd.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_ussd.c
@@ -330,8 +330,8 @@ static int forward_ussd(struct nat_sccp_connection *con, const struct ussd_reque
/* add additional tag/values */
lac = htons(con->lac);
ci = htons(con->ci);
- msgb_tv_fixed_put(msg, USSD_LAC_IE, sizeof(lac), &lac);
- msgb_tv_fixed_put(msg, USSD_CI_IE, sizeof(ci), &ci);
+ msgb_tv_fixed_put(msg, USSD_LAC_IE, sizeof(lac), (const uint8_t *) &lac);
+ msgb_tv_fixed_put(msg, USSD_CI_IE, sizeof(ci), (const uint8_t *) &ci);
ussd = con->bsc->nat->ussd_con;
bsc_do_write(&ussd->queue, msg, IPAC_PROTO_IPACCESS);