From 08d6076e38b9923269bddf6d40c780a4034a1f27 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Tue, 5 Jul 2011 17:23:41 +0000 Subject: [PATCH] oct612x: Eliminate some compiler warnings. Eliminate "large integer implicitly truncated to unsigned type" warnings from r10010. Signed-off-by: Shaun Ruffell Acked-by: Doug Bailey Acked-by: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10024 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- .../octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c | 4 ++-- .../octdeviceapi/oct6100api/oct6100_api/oct6100_events.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c b/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c index 26eaa1b..caefd6e 100644 --- a/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c +++ b/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c @@ -2759,8 +2759,8 @@ UINT32 Oct6100ApiUpdateChannelEntry( /* Index 0 contain event 0 to 31 (msb = event 31) and Index 1 contain index 32 - 55 */ pChanEntry->aulToneConf[ 0 ] = 0; pChanEntry->aulToneConf[ 1 ] = 0; - pChanEntry->ulLastSSToneDetected = cOCT6100_INVALID_VALUE; - pChanEntry->ulLastSSToneTimestamp = cOCT6100_INVALID_VALUE; + pChanEntry->ulLastSSToneDetected = (PTR_TYPE)cOCT6100_INVALID_VALUE; + pChanEntry->ulLastSSToneTimestamp = (PTR_TYPE)cOCT6100_INVALID_VALUE; /* Initialize the bidirectional flag.*/ pChanEntry->fBiDirChannel = FALSE; diff --git a/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c b/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c index 16bf036..776c6d9 100644 --- a/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c +++ b/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c @@ -718,8 +718,8 @@ UINT32 Oct6100ApiTransferToneEvents( break; case 2: /* This is the "STOP" event, invalidate the last value. The user does not want to know about this. */ - pEchoChannel->ulLastSSToneDetected = cOCT6100_INVALID_VALUE; - pEchoChannel->ulLastSSToneTimestamp = cOCT6100_INVALID_VALUE; + pEchoChannel->ulLastSSToneDetected = (PTR_TYPE)cOCT6100_INVALID_VALUE; + pEchoChannel->ulLastSSToneTimestamp = (PTR_TYPE)cOCT6100_INVALID_VALUE; break; default: break; @@ -860,8 +860,8 @@ UINT32 Oct6100ApiTransferToneEvents( break; case 2: /* This is the "STOP" event, invalidate the last value. The user does not want to know about this. */ - pEchoChannel->ulLastSSToneDetected = cOCT6100_INVALID_VALUE; - pEchoChannel->ulLastSSToneTimestamp = cOCT6100_INVALID_VALUE; + pEchoChannel->ulLastSSToneDetected = (PTR_TYPE)cOCT6100_INVALID_VALUE; + pEchoChannel->ulLastSSToneTimestamp = (PTR_TYPE)cOCT6100_INVALID_VALUE; break; default: break;