]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix typedef for switch_stream_handle_write_function_t to also use const char * fmt...
authorMichael Jerris <mike@jerris.com>
Wed, 14 Feb 2007 18:08:11 +0000 (18:08 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 14 Feb 2007 18:08:11 +0000 (18:08 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4262 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_types.h
src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c

index 72a6797d2293fd6ec5d9b3494caf8efe20df9b7e..b72faa317cbe5fe1bb6ea12b3f29449915925275 100644 (file)
@@ -928,7 +928,7 @@ typedef switch_status_t (*switch_waitfor_read_hook_t)(switch_core_session_t *, i
 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,
index 09d762d5013fe8de4aac034c1b5b79d4d0669463..770d5e6f50ffd7b7a0fc473865dd4644235d2d8a 100644 (file)
@@ -126,7 +126,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
 }
 
 
-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;