[asterisk-commits] mmichelson: trunk r96935 - /trunk/apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jan 7 15:10:59 CST 2008
Author: mmichelson
Date: Mon Jan 7 15:10:59 2008
New Revision: 96935
URL: http://svn.digium.com/view/asterisk?view=rev&rev=96935
Log:
Document some weird casting magic that's necessary to interface
with the c-client
Modified:
trunk/apps/app_voicemail.c
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=96935&r1=96934&r2=96935
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Mon Jan 7 15:10:59 2008
@@ -8213,7 +8213,10 @@
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 {
More information about the asterisk-commits
mailing list