summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2008-04-01 18:27:08 +0000
committerJason Parker <jparker@digium.com>2008-04-01 18:27:08 +0000
commita734470a2bf1883afc8e08c1c4ebad59c316b80e (patch)
tree4411f3b67c297692279021baf44fdcc75d56c9e3 /apps
parent9f1e663935662f807a981aba253970ed9eb5aec8 (diff)
Minor formatting cleanup.
(closes issue #12343) Reported by: travishein Patches: app_voicemail_code_convention.patch uploaded by travishein (license 385) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@112252 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 0fc3c8cad..3324e6c3b 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -1640,7 +1640,11 @@ static int store_file(char *dir, char *mailboxuser, char *mailboxcontext, int ms
char full_fn[PATH_MAX];
char fmt[80] = "";
char *c;
- const char *context = "", *macrocontext = "", *callerid = "", *origtime = "", *duration = "";
+ const char *context = "";
+ const char *macrocontext = "";
+ const char *callerid = "";
+ const char *origtime = "";
+ const char *duration = "";
const char *category = "";
struct ast_config *cfg = NULL;
struct odbc_obj *obj;
@@ -3423,10 +3427,12 @@ struct leave_vm_options {
static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_options *options)
{
#ifdef IMAP_STORAGE
- int newmsgs, oldmsgs;
+ int newmsgs;
+ int oldmsgs;
struct vm_state *vms = NULL;
#endif
- char txtfile[PATH_MAX], tmptxtfile[PATH_MAX];
+ char txtfile[PATH_MAX];
+ char tmptxtfile[PATH_MAX];
char callerid[256];
FILE *txt;
char date[256];
@@ -3442,7 +3448,8 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
char tmpdur[16];
char priority[16];
char origtime[16];
- char dir[PATH_MAX], tmpdir[PATH_MAX];
+ char dir[PATH_MAX];
+ char tmpdir[PATH_MAX];
char fn[PATH_MAX];
char prefile[PATH_MAX] = "";
char tempfile[PATH_MAX] = "";
@@ -3450,10 +3457,13 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
char fmt[80];
char *context;
char ecodes[17] = "#";
- char tmp[1024] = "", *tmpptr;
+ char tmp[1024] = "";
+ char *tmpptr;
struct ast_vm_user *vmu;
struct ast_vm_user svm;
- const char *category = NULL, *code, *alldtmf = "0123456789ABCD*#";
+ const char *category = NULL;
+ const char *code;
+ const char *alldtmf = "0123456789ABCD*#";
ast_copy_string(tmp, ext, sizeof(tmp));
ext = tmp;