[Freeswitch-trunk] [commit] r6300 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Fri Nov 16 00:47:00 EST 2007
Author: mikej
Date: Fri Nov 16 00:47:00 2007
New Revision: 6300
Modified:
freeswitch/trunk/src/switch_loadable_module.c
Log:
silence some sun-cc build errors.
Modified: freeswitch/trunk/src/switch_loadable_module.c
==============================================================================
--- freeswitch/trunk/src/switch_loadable_module.c (original)
+++ freeswitch/trunk/src/switch_loadable_module.c Fri Nov 16 00:47:00 2007
@@ -1375,7 +1375,7 @@
return mod;
}
-#define ALLOC_INTERFACE(_TYPE_) for(;;) { \
+#define ALLOC_INTERFACE(_TYPE_) { \
switch_##_TYPE_##_interface_t *i, *ptr; \
i = switch_core_alloc(mod->pool, sizeof(switch_##_TYPE_##_interface_t)); \
assert(i != NULL); \
@@ -1394,43 +1394,43 @@
switch(iname) {
case SWITCH_ENDPOINT_INTERFACE:
- ALLOC_INTERFACE(endpoint);
+ ALLOC_INTERFACE(endpoint)
case SWITCH_TIMER_INTERFACE:
- ALLOC_INTERFACE(timer);
+ ALLOC_INTERFACE(timer)
case SWITCH_DIALPLAN_INTERFACE:
- ALLOC_INTERFACE(dialplan);
+ ALLOC_INTERFACE(dialplan)
case SWITCH_CODEC_INTERFACE:
- ALLOC_INTERFACE(codec);
+ ALLOC_INTERFACE(codec)
case SWITCH_APPLICATION_INTERFACE:
- ALLOC_INTERFACE(application);
+ ALLOC_INTERFACE(application)
case SWITCH_API_INTERFACE:
- ALLOC_INTERFACE(api);
+ ALLOC_INTERFACE(api)
case SWITCH_FILE_INTERFACE:
- ALLOC_INTERFACE(file);
+ ALLOC_INTERFACE(file)
case SWITCH_SPEECH_INTERFACE:
- ALLOC_INTERFACE(speech);
+ ALLOC_INTERFACE(speech)
case SWITCH_DIRECTORY_INTERFACE:
- ALLOC_INTERFACE(directory);
+ ALLOC_INTERFACE(directory)
case SWITCH_CHAT_INTERFACE:
- ALLOC_INTERFACE(chat);
+ ALLOC_INTERFACE(chat)
case SWITCH_SAY_INTERFACE:
- ALLOC_INTERFACE(say);
+ ALLOC_INTERFACE(say)
case SWITCH_ASR_INTERFACE:
- ALLOC_INTERFACE(asr);
+ ALLOC_INTERFACE(asr)
case SWITCH_MANAGEMENT_INTERFACE:
- ALLOC_INTERFACE(management);
+ ALLOC_INTERFACE(management)
default:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid Module Type!\n");
More information about the Freeswitch-trunk
mailing list