diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2007-07-31 14:55:37 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2007-07-31 14:55:37 +0000 |
commit | b2eb99bb476a30aab8fe9537db221e8656a4169c (patch) | |
tree | 4e5656def1a1d5a561c73b8841f1f915cf5019fb /channels | |
parent | 354b6dcf4150454975a355f42c5e2271440a49cc (diff) |
use a different method for overriding the send_digit_begin pointer, as the old one fails to compile on my 64-bit system with gcc-4.1 and --enable-dev-mode turned on
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 8ca5b3bab..55c79127d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -18654,11 +18654,11 @@ static int load_module(void) return AST_MODULE_LOAD_DECLINE; /* Prepare the version that does not require DTMF BEGIN frames. - * We need to use tricks such as memcopy and casts because the variable + * We need to use tricks such as memcpy and casts because the variable * has const fields. */ memcpy(&sip_tech_info, &sip_tech, sizeof(sip_tech)); - *((void **)&sip_tech_info.send_digit_begin) = NULL; + memset((void *) &sip_tech_info.send_digit_begin, 0, sizeof(sip_tech_info.send_digit_begin)); /* Make sure we can register our sip channel type */ if (ast_channel_register(&sip_tech)) { |