]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
trivial build fix (FSBUILD-174)
authorMichael Jerris <mike@jerris.com>
Sat, 20 Jun 2009 03:29:55 +0000 (03:29 +0000)
committerMichael Jerris <mike@jerris.com>
Sat, 20 Jun 2009 03:29:55 +0000 (03:29 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13877 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c

index d12bc0923fd0e36c28fe80118f70aadc1961a777..4e26c1c34b48e7649c5c47cbf7f7e18214db482e 100644 (file)
@@ -178,7 +178,7 @@ static void event_handler(switch_event_t *event)
                switch_core_hash_destroy(&globals.event_hash);
                globals.event_hash = NULL;
                switch_core_hash_init(&globals.event_hash, module_pool);
-               bzero(globals.event_list, SWITCH_EVENT_ALL);
+               memset(globals.event_list, 0, SWITCH_EVENT_ALL);
                if (load_config() != SWITCH_STATUS_SUCCESS) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Failed to reload config file\n");
                } else {
@@ -221,7 +221,7 @@ static void event_handler(switch_event_t *event)
                                len = strlen(packet) + sizeof(globals.host_hash) + strlen((char*) MAGIC);
 #endif
                                buf = malloc(len + 1);
-                               bzero(buf, len + 1);
+                               memset(buf, 0, len + 1);
                                switch_assert(buf);
                                memcpy(buf, &globals.host_hash, sizeof(globals.host_hash));