From becb40a2a2fadd67448b9ad4b62f1d0eafbaebc3 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 1 Nov 2007 14:58:12 +0000 Subject: [PATCH] attempt to make gcc 4.3 happy, seems to be a little tricky so far git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6130 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_async.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index ca6acf9e31..2f6835bc66 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -1229,11 +1229,11 @@ SWITCH_DECLARE(uint32_t) switch_ivr_schedule_transfer(time_t runtime, const char len += strlen(context) + 1; } - switch_zmalloc(helper, len); + switch_zmalloc(cur, len); + helper = (struct transfer_helper *)cur; switch_copy_string(helper->uuid_str, uuid, sizeof(helper->uuid_str)); - cur = (char *) helper; cur += sizeof(*helper); if (extension) { @@ -1278,9 +1278,9 @@ SWITCH_DECLARE(uint32_t) switch_ivr_schedule_broadcast(time_t runtime, char *uui size_t len = sizeof(*helper) + strlen(path) + 1; char *cur = NULL; - switch_zmalloc(helper, len); + switch_zmalloc(cur, len); + helper = (struct broadcast_helper *)cur; - cur = (char *) helper; cur += sizeof(*helper); switch_copy_string(helper->uuid_str, uuid, sizeof(helper->uuid_str)); helper->flags = flags; @@ -1402,3 +1402,13 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_broadcast(const char *uuid, const cha return SWITCH_STATUS_SUCCESS; } +/* For Emacs: + * Local Variables: + * mode:c + * indent-tabs-mode:t + * tab-width:4 + * c-basic-offset:4 + * End: + * For VIM: + * vim:set softtabstop=4 shiftwidth=4 tabstop=4 expandtab: + */