[Freeswitch-svn] [commit] r10070 - freeswitch/trunk/src/mod/event_handlers/mod_event_socket
Freeswitch SVN
mikej at freeswitch.org
Sun Oct 19 19:31:25 EDT 2008
Author: mikej
Date: Sun Oct 19 19:31:24 2008
New Revision: 10070
Modified:
freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
Log:
fix windows build
Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c Sun Oct 19 19:31:24 2008
@@ -620,14 +620,14 @@
}
if (listener->sock) {
- char buf[512] = "";
+ char content_buf[512] = "";
const char message[] = "Disconnected, goodbye!\nSee you at ClueCon http://www.cluecon.com!\n";
- int mlen = strlen(message);
+ int message_len = strlen(message);
- switch_snprintf(buf, sizeof(buf), "Content-Type: text/disconnect-notice\nContent-Length %d\n\n", mlen);
- len = strlen(buf);
- switch_socket_send(listener->sock, buf, &len);
- len = mlen;
+ switch_snprintf(content_buf, sizeof(content_buf), "Content-Type: text/disconnect-notice\nContent-Length %d\n\n", message_len);
+ len = strlen(content_buf);
+ switch_socket_send(listener->sock, content_buf, &len);
+ len = message_len;
switch_socket_send(listener->sock, message, &len);
}
More information about the Freeswitch-svn
mailing list