summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-02-22 16:25:22 +0000
committerRussell Bryant <russell@russellbryant.com>2007-02-22 16:25:22 +0000
commit05a4b32f2a5c48ae346b9e64289d8c23636e82e9 (patch)
tree7a7a4fedbeec87d217917642d2ed63b433b7bb8f /apps
parent9a8eca7c11d2d15321d7e5c2d432c319946c0bd4 (diff)
Fix some compilation problems in app_voicemail. There was a parenthesis missing
in a function prototype, and "#elifdef" is not a valid preprocessor directive. (issue #9122, akohlsmith) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@56187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 4c06935d8..1d0947e9f 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -122,7 +122,7 @@ struct ast_vm_user;
/* Forward declarations for IMAP */
static int init_mailstream(struct vm_state *vms, int box);
-static void write_file char *filename, char *buffer, unsigned long len);
+static void write_file(char *filename, char *buffer, unsigned long len);
static void display_body(BODY *body, char *pfx, long i);
static char *get_header_by_tag(char *header, char *tag, char *buf, size_t len);
static void vm_imap_delete(int msgnum, struct vm_state *vms);
@@ -417,10 +417,12 @@ static int pwdchange = PWDCHANGE_INTERNAL;
#ifdef ODBC_STORAGE
#define tdesc "Comedian Mail (Voicemail System) with ODBC Storage"
-#elifdef IMAP_STORAGE
-#define tdesc "Comedian Mail (Voicemail System) with IMAP Storage"
#else
-#define tdesc "Comedian Mail (Voicemail System)"
+# ifdef IMAP_STORAGE
+# define tdesc "Comedian Mail (Voicemail System) with IMAP Storage"
+# else
+# define tdesc "Comedian Mail (Voicemail System)"
+# endif
#endif
static char userscontext[AST_MAX_EXTENSION] = "default";