silence some sun-cc build errors.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6300 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-11-16 05:47:00 +00:00
parent 29176defca
commit 356a131182
1 changed files with 14 additions and 14 deletions

View File

@ -1375,7 +1375,7 @@ SWITCH_DECLARE(switch_loadable_module_interface_t *) switch_loadable_module_crea
return mod; return mod;
} }
#define ALLOC_INTERFACE(_TYPE_) for(;;) { \ #define ALLOC_INTERFACE(_TYPE_) { \
switch_##_TYPE_##_interface_t *i, *ptr; \ switch_##_TYPE_##_interface_t *i, *ptr; \
i = switch_core_alloc(mod->pool, sizeof(switch_##_TYPE_##_interface_t)); \ i = switch_core_alloc(mod->pool, sizeof(switch_##_TYPE_##_interface_t)); \
assert(i != NULL); \ assert(i != NULL); \
@ -1394,43 +1394,43 @@ SWITCH_DECLARE(void *) switch_loadable_module_create_interface(switch_loadable_m
switch(iname) { switch(iname) {
case SWITCH_ENDPOINT_INTERFACE: case SWITCH_ENDPOINT_INTERFACE:
ALLOC_INTERFACE(endpoint); ALLOC_INTERFACE(endpoint)
case SWITCH_TIMER_INTERFACE: case SWITCH_TIMER_INTERFACE:
ALLOC_INTERFACE(timer); ALLOC_INTERFACE(timer)
case SWITCH_DIALPLAN_INTERFACE: case SWITCH_DIALPLAN_INTERFACE:
ALLOC_INTERFACE(dialplan); ALLOC_INTERFACE(dialplan)
case SWITCH_CODEC_INTERFACE: case SWITCH_CODEC_INTERFACE:
ALLOC_INTERFACE(codec); ALLOC_INTERFACE(codec)
case SWITCH_APPLICATION_INTERFACE: case SWITCH_APPLICATION_INTERFACE:
ALLOC_INTERFACE(application); ALLOC_INTERFACE(application)
case SWITCH_API_INTERFACE: case SWITCH_API_INTERFACE:
ALLOC_INTERFACE(api); ALLOC_INTERFACE(api)
case SWITCH_FILE_INTERFACE: case SWITCH_FILE_INTERFACE:
ALLOC_INTERFACE(file); ALLOC_INTERFACE(file)
case SWITCH_SPEECH_INTERFACE: case SWITCH_SPEECH_INTERFACE:
ALLOC_INTERFACE(speech); ALLOC_INTERFACE(speech)
case SWITCH_DIRECTORY_INTERFACE: case SWITCH_DIRECTORY_INTERFACE:
ALLOC_INTERFACE(directory); ALLOC_INTERFACE(directory)
case SWITCH_CHAT_INTERFACE: case SWITCH_CHAT_INTERFACE:
ALLOC_INTERFACE(chat); ALLOC_INTERFACE(chat)
case SWITCH_SAY_INTERFACE: case SWITCH_SAY_INTERFACE:
ALLOC_INTERFACE(say); ALLOC_INTERFACE(say)
case SWITCH_ASR_INTERFACE: case SWITCH_ASR_INTERFACE:
ALLOC_INTERFACE(asr); ALLOC_INTERFACE(asr)
case SWITCH_MANAGEMENT_INTERFACE: case SWITCH_MANAGEMENT_INTERFACE:
ALLOC_INTERFACE(management); ALLOC_INTERFACE(management)
default: default:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid Module Type!\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid Module Type!\n");