[Freeswitch-trunk] [commit] r6130 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Thu Nov 1 10:58:12 EDT 2007
Author: anthm
Date: Thu Nov 1 10:58:12 2007
New Revision: 6130
Modified:
freeswitch/trunk/src/switch_ivr_async.c
Log:
attempt to make gcc 4.3 happy, seems to be a little tricky so far
Modified: freeswitch/trunk/src/switch_ivr_async.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_async.c (original)
+++ freeswitch/trunk/src/switch_ivr_async.c Thu Nov 1 10:58:12 2007
@@ -1229,11 +1229,11 @@
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 @@
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 @@
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:
+ */
More information about the Freeswitch-trunk
mailing list