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) {
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;
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:
+ */