make some ZRTP-related integer casts explicit
...to satisfy Windows Visual Studio. Thanks to Jeff Lenk.
This commit is contained in:
parent
4e4b4444d2
commit
31e0e17d6b
|
@ -858,7 +858,7 @@ SWITCH_DECLARE(void) switch_rtp_init(switch_memory_pool_t *pool)
|
|||
zrtp_config.lic_mode = ZRTP_LICENSE_MODE_ACTIVE;
|
||||
switch_snprintf(zrtp_cache_path, sizeof(zrtp_cache_path), "%s%szrtp.dat", SWITCH_GLOBAL_dirs.db_dir, SWITCH_PATH_SEPARATOR);
|
||||
zrtp_zstrcpyc((zrtp_stringn_t*)zrtp_config.def_cache_path.buffer, zrtp_cache_path);
|
||||
zrtp_config.def_cache_path.length = strlen(zrtp_cache_path);
|
||||
zrtp_config.def_cache_path.length = (uint16_t)strlen(zrtp_cache_path);
|
||||
zrtp_config.def_cache_path.max_length = 255;
|
||||
zrtp_config.cb.event_cb.on_zrtp_protocol_event = zrtp_event_callback;
|
||||
zrtp_config.cb.misc_cb.on_send_packet = zrtp_send_rtp_callback;
|
||||
|
@ -1726,7 +1726,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_create(switch_rtp_t **new_rtp_session
|
|||
|
||||
rtp_session->zrtp_profile->allowclear = 0;
|
||||
rtp_session->zrtp_profile->disclose_bit = 0;
|
||||
rtp_session->zrtp_profile->cache_ttl = -1;
|
||||
rtp_session->zrtp_profile->cache_ttl = (uint32_t) -1;
|
||||
|
||||
if (zrtp_status_ok != zrtp_session_init(zrtp_global, rtp_session->zrtp_profile, zid, initiator, &rtp_session->zrtp_session)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Error! zRTP INIT Failed\n");
|
||||
|
|
Loading…
Reference in New Issue