Merged revisions 180567 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Fri, 6 Mar 2009 18:25:44 +0000 (18:25 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 6 Mar 2009 18:25:44 +0000 (18:25 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r180567 | mmichelson | 2009-03-06 12:23:09 -0600 (Fri, 06 Mar 2009) | 2 lines

  Make compilation succeed in dev-mode when IMAP storage is enabled.
........

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

apps/app_voicemail.c

index 2388ad4..05dae31 100644 (file)
@@ -1804,7 +1804,7 @@ static int messagecount(const char *context, const char *mailbox, const char *fo
                ast_mutex_lock(&vms_p->lock);
                pgm = mail_newsearchpgm ();
                hdr = mail_newsearchheader ("X-Asterisk-VM-Extension", (char *)(!ast_strlen_zero(vmu->imapvmshareid) ? vmu->imapvmshareid : mailbox));
-               hdr->next = mail_newsearchheader("X-Asterisk-VM-Context", S_OR(context, "default"));
+               hdr->next = mail_newsearchheader("X-Asterisk-VM-Context", (char *) S_OR(context, "default"));
                pgm->header = hdr;
                if (fold != 1) {
                        pgm->unseen = 1;