[asterisk-commits] tilghman: branch 1.4 r304952 - /branches/1.4/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 31 00:54:49 CST 2011


Author: tilghman
Date: Mon Jan 31 00:54:45 2011
New Revision: 304952

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=304952
Log:
Fix compilation when ODBC_STORAGE is defined.

Modified:
    branches/1.4/apps/app_voicemail.c

Modified: branches/1.4/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=304952&r1=304951&r2=304952
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Mon Jan 31 00:54:45 2011
@@ -4556,7 +4556,7 @@
 	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 @@
 #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));




More information about the asterisk-commits mailing list