diff --git a/src/switch_core.c b/src/switch_core.c index 8599b2e69e..497b0dfde5 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -973,7 +973,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc runtime.dummy_cng_frame.data = runtime.dummy_data; runtime.dummy_cng_frame.datalen = sizeof(runtime.dummy_data); runtime.dummy_cng_frame.buflen = sizeof(runtime.dummy_data); - switch_set_flag(&runtime.dummy_cng_frame, SFF_CNG); + switch_set_flag((&runtime.dummy_cng_frame), SFF_CNG); switch_set_flag((&runtime), SCF_NO_NEW_SESSIONS); runtime.hard_log_level = SWITCH_LOG_DEBUG; diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 12378fd4b0..c5c5d953a4 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -50,7 +50,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_sleep(switch_core_session_t *session, cng_frame.data = data; cng_frame.datalen = 2; cng_frame.buflen = 2; - switch_set_flag(&cng_frame, SFF_CNG); + switch_set_flag((&cng_frame), SFF_CNG); for (;;) { now = switch_timestamp_now();