mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 19:38:22 +00:00
app_confbridge: Whitespace
Because there is sometimes no sence to any whitespace. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@431049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -418,10 +418,11 @@ static struct ast_channel *rec_request(const char *type, struct ast_format_cap *
|
|||||||
static void set_rec_filename(struct conference_bridge *bridge, struct ast_str **filename, int is_new)
|
static void set_rec_filename(struct conference_bridge *bridge, struct ast_str **filename, int is_new)
|
||||||
{
|
{
|
||||||
char *rec_file = bridge->b_profile.rec_file;
|
char *rec_file = bridge->b_profile.rec_file;
|
||||||
time_t now;
|
|
||||||
char *ext;
|
char *ext;
|
||||||
|
time_t now;
|
||||||
|
|
||||||
if (ast_str_strlen(*filename) && !is_new) {
|
if (ast_str_strlen(*filename)
|
||||||
|
&& !is_new) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -429,7 +430,8 @@ static void set_rec_filename(struct conference_bridge *bridge, struct ast_str **
|
|||||||
|
|
||||||
ast_str_reset(*filename);
|
ast_str_reset(*filename);
|
||||||
if (ast_strlen_zero(rec_file)) {
|
if (ast_strlen_zero(rec_file)) {
|
||||||
ast_str_set(filename, 0, "confbridge-%s-%u.wav", bridge->name, (unsigned int)now);
|
ast_str_set(filename, 0, "confbridge-%s-%u.wav", bridge->name,
|
||||||
|
(unsigned int) now);
|
||||||
} else {
|
} else {
|
||||||
/* insert time before file extension */
|
/* insert time before file extension */
|
||||||
ext = strrchr(rec_file, '.');
|
ext = strrchr(rec_file, '.');
|
||||||
|
|||||||
Reference in New Issue
Block a user