From ba0407599b6271f47a4e6e6d539522ae5b207287 Mon Sep 17 00:00:00 2001 From: Sunil Jogi Date: Tue, 22 May 2012 19:22:58 -0700 Subject: Fix wrong extern variable size nxp_nfc_felica_timeout originally uint8_t but current source has uint32_t. Changed to uint8_t to fix the problem. Without fix it overwrite the other global memory region which can create problem in other section of code. --- src/phLibNfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phLibNfc.c b/src/phLibNfc.c index c7c37c8..6477a3f 100644 --- a/src/phLibNfc.c +++ b/src/phLibNfc.c @@ -162,7 +162,7 @@ int phLibNfc_GetHciTimeout() { return nxp_nfc_hci_response_timeout; } -extern uint32_t nxp_nfc_felica_timeout; +extern uint8_t nxp_nfc_felica_timeout; NFCSTATUS phLibNfc_SetFelicaTimeout(uint8_t timeout_in_ms) { nxp_nfc_felica_timeout = timeout_in_ms; return NFCSTATUS_SUCCESS; -- cgit v1.1