[svn-commits] qwell: linux/trunk r5121 - /linux/trunk/drivers/dahdi/wctdm.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Oct 22 12:19:40 CDT 2008


Author: qwell
Date: Wed Oct 22 12:19:40 2008
New Revision: 5121

URL: http://svn.digium.com/view/dahdi?view=rev&rev=5121
Log:
Fix building on big endian machines.

(closes issue #13754)
Reported by: shrift
Patches:
      wctdm-powerpc.patch uploaded by irroot (license 52)
Tested by: shrift

Modified:
    linux/trunk/drivers/dahdi/wctdm.c

Modified: linux/trunk/drivers/dahdi/wctdm.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/wctdm.c?view=diff&rev=5121&r1=5120&r2=5121
==============================================================================
--- linux/trunk/drivers/dahdi/wctdm.c (original)
+++ linux/trunk/drivers/dahdi/wctdm.c Wed Oct 22 12:19:40 2008
@@ -395,13 +395,13 @@
 	for (x=0;x<DAHDI_CHUNKSIZE;x++) {
 #ifdef __BIG_ENDIAN
 		if (wc->cardflag & (1 << 3))
-			wc->chans[3].readchunk[x] = (readchunk[x]) & 0xff;
+			wc->chans[3]->readchunk[x] = (readchunk[x]) & 0xff;
 		if (wc->cardflag & (1 << 2))
-			wc->chans[2].readchunk[x] = (readchunk[x] >> 8) & 0xff;
+			wc->chans[2]->readchunk[x] = (readchunk[x] >> 8) & 0xff;
 		if (wc->cardflag & (1 << 1))
-			wc->chans[1].readchunk[x] = (readchunk[x] >> 16) & 0xff;
+			wc->chans[1]->readchunk[x] = (readchunk[x] >> 16) & 0xff;
 		if (wc->cardflag & (1 << 0))
-			wc->chans[0].readchunk[x] = (readchunk[x] >> 24) & 0xff;
+			wc->chans[0]->readchunk[x] = (readchunk[x] >> 24) & 0xff;
 #else
 		if (wc->cardflag & (1 << 3))
 			wc->chans[3]->readchunk[x] = (readchunk[x] >> 24) & 0xff;




More information about the svn-commits mailing list