From: Stefan Knoblich Date: Thu, 12 Jul 2012 01:02:16 +0000 (+0200) Subject: ftmod_wanpipe: Fix "initialization from incompatible pointer type" warning. X-Git-Tag: v1.2.0~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aebfe6a6043e2e96e2cbc0e6ced5929334e56e5;p=thirdparty%2Ffreeswitch.git ftmod_wanpipe: Fix "initialization from incompatible pointer type" warning. Signed-off-by: Stefan Knoblich --- diff --git a/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c b/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c index 61f3702265..c26cbec02c 100755 --- a/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c +++ b/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c @@ -124,7 +124,7 @@ FIO_CHANNEL_NEXT_EVENT_FUNCTION(wanpipe_channel_next_event); static void wp_swap16(char *data, int datalen) { int i = 0; - uint16_t *samples = data; + uint16_t *samples = (uint16_t *)data; for (i = 0; i < datalen/2; i++) { uint16_t sample = ((samples[i] & 0x00FF) << 8) | ((samples[i] & 0xFF00) >> 8); samples[i] = sample;