[asterisk-commits] mmichelson: trunk r118159 - /trunk/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 23 15:55:03 CDT 2008


Author: mmichelson
Date: Fri May 23 15:55:02 2008
New Revision: 118159

URL: http://svn.digium.com/view/asterisk?view=rev&rev=118159
Log:
Get rid of warnings for those silly compilers which warn when freeing
a const pointer


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=118159&r1=118158&r2=118159
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Fri May 23 15:55:02 2008
@@ -9166,8 +9166,8 @@
 	AST_RWLIST_WRLOCK(&mwi_subs);
 	AST_RWLIST_INSERT_TAIL(&mwi_subs, mwi_sub, entry);
 	AST_RWLIST_UNLOCK(&mwi_subs);
-	ast_free(p->mailbox);
-	ast_free(p->context);
+	ast_free((void *) p->mailbox);
+	ast_free((void *) p->context);
 	ast_free(p);	
 	return 0;
 }




More information about the asterisk-commits mailing list