From: Tilghman Lesher Date: Mon, 31 Jan 2011 06:54:45 +0000 (+0000) Subject: Fix compilation when ODBC_STORAGE is defined. X-Git-Tag: 1.4.41-rc1~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c5fd20e90d42b0f565227ceb59a42b31950d47e;p=thirdparty%2Fasterisk.git Fix compilation when ODBC_STORAGE is defined. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@304952 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 9dbd23e77e..e593ade46e 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4556,7 +4556,7 @@ leave_vm_out: return res; } -#ifndef IMAP_STORAGE +#if !defined(IMAP_STORAGE) && !defined(ODBC_STORAGE) static int resequence_mailbox(struct ast_vm_user *vmu, char *dir, int stopcount) { /* we know the actual number of messages, so stop process when number is hit */ @@ -5994,7 +5994,9 @@ static int play_message(struct ast_channel *chan, struct ast_vm_user *vmu, struc #ifndef IMAP_STORAGE static int open_mailbox(struct vm_state *vms, struct ast_vm_user *vmu,int box) { +#ifndef ODBC_STORAGE int res = 0; +#endif int count_msg, last_msg; ast_copy_string(vms->curbox, mbox(box), sizeof(vms->curbox));