]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Get rid of warnings for those silly compilers which warn when freeing
authorMark Michelson <mmichelson@digium.com>
Fri, 23 May 2008 20:55:02 +0000 (20:55 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 23 May 2008 20:55:02 +0000 (20:55 +0000)
a const pointer

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@118159 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 2ba0a3cf94a45b8b06c72648b26152792f70456a..b0fed2d4765dabc0d01176b679cccbfa3a6dcd4d 100644 (file)
@@ -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;
 }