add mod_event_multicast to msvc build. Fix some warnings.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@618 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-02-14 22:58:07 +00:00
parent ebfc333dc6
commit 8420b7e8fb
4 changed files with 15 additions and 3 deletions
@@ -84,7 +84,7 @@ static switch_status load_config(void)
static void event_handler(switch_event *event)
{
char buf[1024];
int len;
size_t len;
if (event->subclass && !strcmp(event->subclass->name, MULTICAST_EVENT)) {
/* ignore our own events to avoid ping pong*/
@@ -197,7 +197,7 @@ SWITCH_MOD_DECLARE(switch_status) switch_module_runtime(void)
globals.running = 1;
while(globals.running == 1) {
switch_sockaddr_t addr = {0};
int len = sizeof(buf);
size_t len = sizeof(buf);
memset(buf, 0, len);
if ((status = switch_socket_recvfrom(&addr, globals.udp_socket, 0, buf, &len)) == SWITCH_STATUS_SUCCESS) {
if (switch_event_create_subclass(&local_event, SWITCH_EVENT_CUSTOM, MULTICAST_EVENT) == SWITCH_STATUS_SUCCESS) {
@@ -3,7 +3,7 @@
ProjectType="Visual C++"
Version="8.00"
Name="mod_event_multicast"
ProjectGUID="{3A2A7795-C216-4FFF-B8EF-4D17A84BACCC}"
ProjectGUID="{784113EF-44D9-4949-835D-7065D3C7AD08}"
RootNamespace="mod_event_multicast"
Keyword="Win32Proj"
>