fix windows build

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11283 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-01-19 17:12:07 +00:00
parent 7697cd90d5
commit de54fe58ff

View File

@ -1163,8 +1163,6 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
switch_set_flag_locked(listener, LFLAG_HANDLE_DISCO); switch_set_flag_locked(listener, LFLAG_HANDLE_DISCO);
if (switch_test_flag(listener, LFLAG_LINGER)) { if (switch_test_flag(listener, LFLAG_LINGER)) {
char message[128] = ""; char message[128] = "";
int mlen;
switch_size_t len;
char disco_buf[512] = ""; char disco_buf[512] = "";
switch_snprintf(message, sizeof(message), switch_snprintf(message, sizeof(message),
@ -1175,7 +1173,7 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
"Controlled-Session-UUID: %s\n" "Controlled-Session-UUID: %s\n"
"Content-Disposition: linger\n" "Content-Disposition: linger\n"
"Content-Length: %d\n\n", "Content-Length: %d\n\n",
switch_core_session_get_uuid(listener->session), mlen); switch_core_session_get_uuid(listener->session), (int)mlen);
len = strlen(disco_buf); len = strlen(disco_buf);
switch_socket_send(listener->sock, disco_buf, &len); switch_socket_send(listener->sock, disco_buf, &len);