From e1c9fcfb918da43ab24f95c9341da3b6bf3b1250 Mon Sep 17 00:00:00 2001 From: Jeff Hamilton Date: Mon, 1 Nov 2010 15:01:42 -0500 Subject: Fix the parameters to phFriNfc_Llcp_EncodeMIUX. Change-Id: Ia0426198d0edd325edcc2bb5a3c6d7d623e28a9f --- src/phFriNfc_LlcpTransport_Connection.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/phFriNfc_LlcpTransport_Connection.c') diff --git a/src/phFriNfc_LlcpTransport_Connection.c b/src/phFriNfc_LlcpTransport_Connection.c index 2db1192..7475b42 100644 --- a/src/phFriNfc_LlcpTransport_Connection.c +++ b/src/phFriNfc_LlcpTransport_Connection.c @@ -1973,7 +1973,7 @@ NFCSTATUS phFriNfc_LlcpTransport_ConnectionOriented_Accept(phFriNfc_LlcpTranspor NFCSTATUS status = NFCSTATUS_SUCCESS; uint32_t offset = 0; - uint16_t miux; + uint8_t miux[2]; uint8_t i; /* Store the options in the socket */ @@ -2023,15 +2023,15 @@ NFCSTATUS phFriNfc_LlcpTransport_ConnectionOriented_Accept(phFriNfc_LlcpTranspor if(pLlcpSocket->localMIUX != PHFRINFC_LLCP_MIUX_DEFAULT) { /* Encode MIUX value */ - phFriNfc_Llcp_EncodeMIUX(&pLlcpSocket->localMIUX, - &miux); + phFriNfc_Llcp_EncodeMIUX(pLlcpSocket->localMIUX, + miux); /* Encode MIUX in TLV format */ status = phFriNfc_Llcp_EncodeTLV(&pLlcpSocket->sSocketSendBuffer, &offset, PHFRINFC_LLCP_TLV_TYPE_MIUX, PHFRINFC_LLCP_TLV_LENGTH_MIUX, - (uint8_t*)&miux); + miux); if(status != NFCSTATUS_SUCCESS) { /* Call the CB */ @@ -2178,7 +2178,7 @@ NFCSTATUS phFriNfc_LlcpTransport_ConnectionOriented_Connect( phFriNfc_LlcpTransp NFCSTATUS status = NFCSTATUS_SUCCESS; uint32_t offset = 0; - uint16_t miux = 0; + uint8_t miux[2]; /* Test if a nSap is present */ if(nSap != PHFRINFC_LLCP_SAP_DEFAULT) @@ -2205,15 +2205,15 @@ NFCSTATUS phFriNfc_LlcpTransport_ConnectionOriented_Connect( phFriNfc_LlcpTransp if(pLlcpSocket->localMIUX != PHFRINFC_LLCP_MIUX_DEFAULT) { /* Encode MIUX value */ - phFriNfc_Llcp_EncodeMIUX(&pLlcpSocket->localMIUX, - &miux); + phFriNfc_Llcp_EncodeMIUX(pLlcpSocket->localMIUX, + miux); /* Encode MIUX in TLV format */ status = phFriNfc_Llcp_EncodeTLV(&pLlcpSocket->sSocketSendBuffer, &offset, PHFRINFC_LLCP_TLV_TYPE_MIUX, PHFRINFC_LLCP_TLV_LENGTH_MIUX, - (uint8_t*)&miux); + miux); if(status != NFCSTATUS_SUCCESS) { return status = PHNFCSTVAL(CID_FRI_NFC_LLCP_TRANSPORT, NFCSTATUS_FAILED); -- cgit v1.2.3