[Freeswitch-svn] [commit] r10109 - freeswitch/trunk/src/mod/event_handlers/mod_event_socket
Freeswitch SVN
mikej at freeswitch.org
Wed Oct 22 10:08:25 EDT 2008
Author: mikej
Date: Wed Oct 22 10:08:24 2008
New Revision: 10109
Modified:
freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
Log:
var scope masking.
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 Wed Oct 22 10:08:24 2008
@@ -1297,13 +1297,13 @@
switch_thread_rwlock_wrlock(listener->rwlock);
if (listener->sock) {
- char buf[512] = "";
+ char disco_buf[512] = "";
const char message[] = "Disconnected, goodbye!\nSee you at ClueCon http://www.cluecon.com!\n";
int mlen = 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);
+ switch_snprintf(disco_buf, sizeof(disco_buf), "Content-Type: text/disconnect-notice\nContent-Length %d\n\n", mlen);
+ len = strlen(disco_buf);
+ switch_socket_send(listener->sock, disco_buf, &len);
len = mlen;
switch_socket_send(listener->sock, message, &len);
close_socket(&listener->sock);
More information about the Freeswitch-svn
mailing list