[Freeswitch-svn] [commit] r8218 - freeswitch/trunk/src/mod/languages/mod_lua
Freeswitch SVN
mikej at freeswitch.org
Tue Apr 29 23:55:38 EDT 2008
Author: mikej
Date: Tue Apr 29 23:55:38 2008
New Revision: 8218
Modified:
freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c
freeswitch/trunk/src/mod/languages/mod_lua/mod_lua_extra.c
Log:
tweaks
Modified: freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c Tue Apr 29 23:55:38 2008
@@ -116,9 +116,9 @@
char *args = strchr(input_code, ' ');
if (args) {
char *code = NULL;
- *args++ = '\0';
int x, argc;
char *argv[128] = { 0 };
+ *args++ = '\0';
if ((argc = switch_separate_string(args, ' ', argv, (sizeof(argv) / sizeof(argv[0]))))) {
switch_stream_handle_t stream = { 0 };
Modified: freeswitch/trunk/src/mod/languages/mod_lua/mod_lua_extra.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_lua/mod_lua_extra.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_lua/mod_lua_extra.c Tue Apr 29 23:55:38 2008
@@ -1,7 +1,7 @@
SWITCH_BEGIN_EXTERN_C
-int mod_lua_conjure_event(lua_State *L, switch_event_t *event, const char *name, int destroy_me)
+void mod_lua_conjure_event(lua_State *L, switch_event_t *event, const char *name, int destroy_me)
{
Event *result = new Event(event);
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event, destroy_me);
@@ -9,7 +9,7 @@
}
-int mod_lua_conjure_stream(lua_State *L, switch_stream_handle_t *stream, const char *name, int destroy_me)
+void mod_lua_conjure_stream(lua_State *L, switch_stream_handle_t *stream, const char *name, int destroy_me)
{
Stream *result = new Stream(stream);
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream, destroy_me);
More information about the Freeswitch-svn
mailing list