diff options
author | Jason Parker <jparker@digium.com> | 2008-10-22 17:19:40 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2008-10-22 17:19:40 +0000 |
commit | 2f08bb59ba8dea292b9a6456a21471864b1d6397 (patch) | |
tree | 0b7276a6fb3035534deb73fe214ae89fef246248 /drivers/dahdi/wctdm.c | |
parent | 823f7bf474369da8edf465ea11b930e0680726ed (diff) |
Fix building on big endian machines.
(closes issue #13754)
Reported by: shrift
Patches:
wctdm-powerpc.patch uploaded by irroot (license 52)
Tested by: shrift
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5121 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm.c')
-rw-r--r-- | drivers/dahdi/wctdm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/dahdi/wctdm.c b/drivers/dahdi/wctdm.c index 1c1ea44..09f079c 100644 --- a/drivers/dahdi/wctdm.c +++ b/drivers/dahdi/wctdm.c @@ -395,13 +395,13 @@ static inline void wctdm_receiveprep(struct wctdm *wc, unsigned char ints) 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; |