[asterisk-commits] file: branch 1.4 r70677 - /branches/1.4/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 21 08:58:36 CDT 2007


Author: file
Date: Thu Jun 21 08:58:36 2007
New Revision: 70677

URL: http://svn.digium.com/view/asterisk?view=rev&rev=70677
Log:
Fix building with ODBC storage enabled. (issue #10025 reported by denisgalvao)

Modified:
    branches/1.4/apps/app_voicemail.c

Modified: branches/1.4/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=70677&r1=70676&r2=70677
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Thu Jun 21 08:58:36 2007
@@ -1604,7 +1604,7 @@
 /*
  * A negative return value indicates an error.
  */
-#if (!defined(IMAP_STORAGE) || defined(ODBC_STORAGE))
+#if (!defined(IMAP_STORAGE) && !defined(ODBC_STORAGE))
 static int last_message_index(struct ast_vm_user *vmu, char *dir)
 {
 	int x;
@@ -1622,6 +1622,7 @@
 
 	return x - 1;
 }
+#endif
 #endif
 
 static int vm_delete(char *file)
@@ -1639,8 +1640,6 @@
 	return ast_filedelete(file, NULL);
 }
 
-
-#endif
 static int inbuf(struct baseio *bio, FILE *fi)
 {
 	int l;




More information about the asterisk-commits mailing list