diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-07-05 17:23:41 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-07-05 17:23:41 +0000 |
commit | e22cd3cf2d98e3c0d9ef61de676f10eb00a47b46 (patch) | |
tree | 9e77542e3dfcf81162794f0344a99b90f7e2cd36 /drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api | |
parent | c2a95f7acdd157c41ff317a40115ae03d8092020 (diff) |
oct612x: Eliminate some compiler warnings.
Eliminate "large integer implicitly truncated to unsigned type" warnings
from r10010.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Doug Bailey <dbailey@digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10024 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api')
-rw-r--r-- | drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c | 4 | ||||
-rw-r--r-- | drivers/dahdi/oct612x/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; |