[dahdi-commits] sruffell: linux/trunk r10024 - /linux/trunk/drivers/dahdi/oct612x/octdeviceap...

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Tue Jul 5 12:23:45 CDT 2011


Author: sruffell
Date: Tue Jul  5 12:23:41 2011
New Revision: 10024

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10024
Log:
oct612x: Eliminate some compiler warnings.

Eliminate "large integer implicitly truncated to unsigned type" warnings
from r10010.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Doug Bailey <dbailey at digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>

Modified:
    linux/trunk/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c
    linux/trunk/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c

Modified: linux/trunk/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c?view=diff&rev=10024&r1=10023&r2=10024
==============================================================================
--- linux/trunk/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c (original)
+++ linux/trunk/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c Tue Jul  5 12:23:41 2011
@@ -2759,8 +2759,8 @@
 	/* 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;

Modified: linux/trunk/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c?view=diff&rev=10024&r1=10023&r2=10024
==============================================================================
--- linux/trunk/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c (original)
+++ linux/trunk/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c Tue Jul  5 12:23:41 2011
@@ -718,8 +718,8 @@
 									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 @@
 									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;




More information about the dahdi-commits mailing list