diff options
author | Richard Mudgett <rmudgett@digium.com> | 2015-01-23 19:44:48 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2015-01-23 19:44:48 +0000 |
commit | f8b3fb6e2fce6f01a01c82d4297584e574c88aec (patch) | |
tree | ee981f9494b0ce488904ffda3c30ff117d345560 /apps/app_confbridge.c | |
parent | 197265438eb8583730d0ff7a0629731db47a3dc1 (diff) |
app_confbridge: Whitespace
Because there is sometimes no sence to any whitespace.
........
Merged revisions 431049 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@431050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_confbridge.c')
-rw-r--r-- | apps/app_confbridge.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/apps/app_confbridge.c b/apps/app_confbridge.c index 7c9f0c5a1..22300590f 100644 --- a/apps/app_confbridge.c +++ b/apps/app_confbridge.c @@ -557,29 +557,31 @@ static void send_unmute_event(struct confbridge_user *user, struct confbridge_co static void set_rec_filename(struct confbridge_conference *conference, struct ast_str **filename, int is_new) { char *rec_file = conference->b_profile.rec_file; - time_t now; char *ext; + time_t now; - if (ast_str_strlen(*filename) && ast_test_flag(&conference->b_profile, BRIDGE_OPT_RECORD_FILE_APPEND) && !is_new) { - return; + if (ast_str_strlen(*filename) + && ast_test_flag(&conference->b_profile, BRIDGE_OPT_RECORD_FILE_APPEND) + && !is_new) { + return; } time(&now); ast_str_reset(*filename); if (ast_strlen_zero(rec_file)) { - ast_str_set(filename, 0, "confbridge-%s-%u.wav", conference->name, (unsigned int)now); + ast_str_set(filename, 0, "confbridge-%s-%u.wav", conference->name, + (unsigned int) now); } else { /* insert time before file extension */ ext = strrchr(rec_file, '.'); if (ext) { ast_str_set_substr(filename, 0, rec_file, ext - rec_file); - ast_str_append(filename, 0, "-%u%s", (unsigned int)now, ext); + ast_str_append(filename, 0, "-%u%s", (unsigned int) now, ext); } else { - ast_str_set(filename, 0, "%s-%u", rec_file, (unsigned int)now); + ast_str_set(filename, 0, "%s-%u", rec_file, (unsigned int) now); } } - if (ast_test_flag(&conference->b_profile, BRIDGE_OPT_RECORD_FILE_APPEND)) { ast_str_append(filename, 0, ",a"); } |