mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 22:24:16 +00:00
fix more msvc warnings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@636 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
70739b6d2e
commit
241903ba4e
15 files changed
+324
-325
No files matched your search
@@ -69,7 +69,7 @@ switch_caller_extension *demo_dialplan_hunt(switch_core_session *session)
|
||||
memset(app, 0, sizeof(app));
|
||||
strncpy(app, val, sizeof(app));
|
||||
|
||||
if ((data = strchr(app, ' '))) {
|
||||
if ((data = strchr(app, ' ')) != 0) {
|
||||
*data = '\0';
|
||||
data++;
|
||||
} else {
|
||||
@@ -77,10 +77,9 @@ switch_caller_extension *demo_dialplan_hunt(switch_core_session *session)
|
||||
continue;
|
||||
}
|
||||
if (!extension) {
|
||||
if (!
|
||||
(extension =
|
||||
if ((extension =
|
||||
switch_caller_extension_new(session, caller_profile->destination_number,
|
||||
caller_profile->destination_number))) {
|
||||
caller_profile->destination_number)) == 0) {
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "memory error!\n");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -124,14 +124,14 @@ switch_caller_extension *directory_dialplan_hunt(switch_core_session *session)
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "DIRECTORY VALUE [%s]=[%s]\n", var, val);
|
||||
if(!strcasecmp(var, "callflow")) {
|
||||
if (!extension) {
|
||||
if (!(extension = switch_caller_extension_new(session, caller_profile->destination_number,
|
||||
caller_profile->destination_number))) {
|
||||
if ((extension = switch_caller_extension_new(session, caller_profile->destination_number,
|
||||
caller_profile->destination_number)) == 0) {
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "memory error!\n");
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
switch_copy_string(app, val, sizeof(app));
|
||||
if ((data = strchr(app, ' '))) {
|
||||
if ((data = strchr(app, ' ')) != 0) {
|
||||
*data++ = '\0';
|
||||
}
|
||||
switch_caller_extension_add_application(session, extension, app, data);
|
||||
|
||||
@@ -144,15 +144,14 @@ switch_caller_extension *dialplan_hunt(switch_core_session *session)
|
||||
memset(app, 0, sizeof(app));
|
||||
switch_copy_string(app, newval, sizeof(app));
|
||||
|
||||
if ((data = strchr(app, ' '))) {
|
||||
if ((data = strchr(app, ' ')) != 0) {
|
||||
*data = '\0';
|
||||
data++;
|
||||
}
|
||||
|
||||
if (!extension) {
|
||||
if (!
|
||||
(extension =
|
||||
switch_caller_extension_new(session, exten_name, caller_profile->destination_number))) {
|
||||
if ((extension =
|
||||
switch_caller_extension_new(session, exten_name, caller_profile->destination_number)) == 0) {
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "memory error!\n");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user