mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 16:33:34 +00:00
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
This commit is contained in:
@@ -8213,7 +8213,10 @@ static int load_config(int reload)
|
|||||||
ast_copy_string(greetingfolder, imapfolder, sizeof(greetingfolder));
|
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"))) {
|
if ((val = ast_variable_retrieve(cfg, "general", "imapreadtimeout"))) {
|
||||||
mail_parameters(NIL, SET_READTIMEOUT, (void *) (atol(val)));
|
mail_parameters(NIL, SET_READTIMEOUT, (void *) (atol(val)));
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user