[Freeswitch-svn] [commit] r4262 - in freeswitch/trunk/src: include mod/xml_int/mod_xml_rpc
Freeswitch SVN
mikej at freeswitch.org
Wed Feb 14 13:08:11 EST 2007
Author: mikej
Date: Wed Feb 14 13:08:11 2007
New Revision: 4262
Modified:
freeswitch/trunk/src/include/switch_types.h
freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c
Log:
fix typedef for switch_stream_handle_write_function_t to also use const char * fmt and match other uses of that type.
Modified: freeswitch/trunk/src/include/switch_types.h
==============================================================================
--- freeswitch/trunk/src/include/switch_types.h (original)
+++ freeswitch/trunk/src/include/switch_types.h Wed Feb 14 13:08:11 2007
@@ -928,7 +928,7 @@
typedef switch_status_t (*switch_waitfor_write_hook_t)(switch_core_session_t *, int, int);
typedef switch_status_t (*switch_send_dtmf_hook_t)(switch_core_session_t *, char *);
typedef struct switch_stream_handle switch_stream_handle_t;
-typedef switch_status_t (*switch_stream_handle_write_function_t)(switch_stream_handle_t *handle, char *fmt, ...);
+typedef switch_status_t (*switch_stream_handle_write_function_t)(switch_stream_handle_t *handle, const char *fmt, ...);
typedef switch_status_t (*switch_api_function_t)(char *in, switch_core_session_t *session, switch_stream_handle_t *stream);
typedef switch_status_t (*switch_input_callback_function_t)(switch_core_session_t *session,
void *input,
Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c (original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c Wed Feb 14 13:08:11 2007
@@ -126,7 +126,7 @@
}
-static switch_status_t http_stream_write(switch_stream_handle_t *handle, char *fmt, ...)
+static switch_status_t http_stream_write(switch_stream_handle_t *handle, const char *fmt, ...)
{
va_list ap;
TSession *r = handle->data;
More information about the Freeswitch-svn
mailing list