[asterisk-commits] jpeeler: branch 1.4 r257856 - /branches/1.4/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 19 14:09:48 CDT 2010


Author: jpeeler
Date: Mon Apr 19 14:09:46 2010
New Revision: 257856

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=257856
Log:
make app_voicemail compile with IMAP_STORAGE

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=257856&r1=257855&r2=257856
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Mon Apr 19 14:09:46 2010
@@ -2877,6 +2877,7 @@
 }
 #endif
 
+#ifndef IMAP_STORAGE
 static int copy(char *infile, char *outfile)
 {
 	int ifd;
@@ -2926,7 +2927,9 @@
 	}
 #endif
 }
-
+#endif
+
+#ifndef IMAP_STORAGE
 static void copy_plain_file(char *frompath, char *topath)
 {
 	char frompath2[PATH_MAX], topath2[PATH_MAX];
@@ -2935,7 +2938,9 @@
 	snprintf(topath2, sizeof(topath2), "%s.txt", topath);
 	copy(frompath2, topath2);
 }
-
+#endif
+
+#ifndef IMAP_STORAGE
 static int vm_delete(char *file)
 {
 	char *txt;
@@ -2950,6 +2955,7 @@
 	unlink(txt);
 	return ast_filedelete(file, NULL);
 }
+#endif
 
 static int inbuf(struct baseio *bio, FILE *fi)
 {
@@ -5387,8 +5393,10 @@
 	} else {
 		/* Forward VoiceMail */
 		long duration = 0;
+		struct vm_state vmstmp;
+#ifndef IMAP_STORAGE
 		char msgfile[PATH_MAX];
-		struct vm_state vmstmp;
+#endif
 
 		memcpy(&vmstmp, vms, sizeof(vmstmp));
 




More information about the asterisk-commits mailing list