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 {
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));