diff options
author | Mark Michelson <mmichelson@digium.com> | 2007-12-04 18:29:35 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2007-12-04 18:29:35 +0000 |
commit | 0742acef39683255109ba59a4c97140256a42428 (patch) | |
tree | 0f42aacf4c0efa26d12e57e0b367fd920eb3f35f /apps | |
parent | 7c356aad48915fb498a25b4b6fa50e2fad7ae41d (diff) |
Kevin suggested doing the reverse of my last commit, since imap_retrieve_file
does not modify the contents of the "mailbox" string. In other words, I'm changing
the imap_retrieve_file function to take a const char* as the third argument so that I
don't need to cast const char*'s as char*'s to suppress compiler warnings.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index f2cda82f8..7e4045d3a 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -148,7 +148,7 @@ static int imap_store_file(char *dir, char *mailboxuser, char *mailboxcontext, i static void update_messages_by_imapuser(const char *user, unsigned long number); static int imap_remove_file (char *dir, int msgnum); -static int imap_retrieve_file (char *dir, int msgnum, char *mailbox, char *context); +static int imap_retrieve_file (char *dir, int msgnum, const char *mailbox, char *context); static int imap_delete_old_greeting (char *dir, struct vm_state *vms); struct vmstate { struct vm_state *vms; @@ -4283,7 +4283,7 @@ static int forward_message(struct ast_channel *chan, char *context, struct vm_st /* play name if available, else play extension number */ snprintf(fn, sizeof(fn), "%s%s/%s/greet", VM_SPOOL_DIR, receiver->context, s); - RETRIEVE(fn, -1, (char *)s, receiver->context); + RETRIEVE(fn, -1, s, receiver->context); if (ast_fileexists(fn, NULL, NULL) > 0) { res = ast_stream_and_wait(chan, fn, ecodes); if (res) { |