From 6aebfe6a6043e2e96e2cbc0e6ced5929334e56e5 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Thu, 12 Jul 2012 03:02:16 +0200 Subject: [PATCH] ftmod_wanpipe: Fix "initialization from incompatible pointer type" warning. Signed-off-by: Stefan Knoblich --- libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;