From: Mark Michelson Date: Fri, 23 May 2008 20:55:02 +0000 (+0000) Subject: Get rid of warnings for those silly compilers which warn when freeing X-Git-Tag: 1.6.2.0-beta1~2164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ad72ce1cf56377e92d2f7c2761be9c71538d046;p=thirdparty%2Fasterisk.git Get rid of warnings for those silly compilers which warn when freeing a const pointer git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@118159 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 2ba0a3cf94..b0fed2d476 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -9166,8 +9166,8 @@ static int handle_subscribe(void *datap) 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; }