diff options
author | Mark Michelson <mmichelson@digium.com> | 2008-01-07 21:10:59 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2008-01-07 21:10:59 +0000 |
commit | 19b18414f57efb5e77513ead74a485496b90decb (patch) | |
tree | f8c700ad5e3cd9dd0675176ec45c8e99e143aeb3 | |
parent | 905fc559d1deeaedd827f818053eba5871a094c8 (diff) |
Document some weird casting magic that's necessary to interface
with the c-client
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index a9202f1ac..a8e5c309a 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -8213,7 +8213,10 @@ static int load_config(int reload) ast_copy_string(greetingfolder, imapfolder, sizeof(greetingfolder)); } - /* Handle the timeouts */ + /* There is some very unorthodox casting done here. This is due + * to the way c-client handles the argument passed in. It expects a + * void pointer and casts the pointer directly to a long without + * first dereferencing it. */ if ((val = ast_variable_retrieve(cfg, "general", "imapreadtimeout"))) { mail_parameters(NIL, SET_READTIMEOUT, (void *) (atol(val))); } else { |