[svn-commits] rmudgett: branch 11 r431049 - /branches/11/apps/app_confbridge.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Jan 23 13:34:58 CST 2015
Author: rmudgett
Date: Fri Jan 23 13:34:55 2015
New Revision: 431049
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=431049
Log:
app_confbridge: Whitespace
Because there is sometimes no sence to any whitespace.
Modified:
branches/11/apps/app_confbridge.c
Modified: branches/11/apps/app_confbridge.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/apps/app_confbridge.c?view=diff&rev=431049&r1=431048&r2=431049
==============================================================================
--- branches/11/apps/app_confbridge.c (original)
+++ branches/11/apps/app_confbridge.c Fri Jan 23 13:34:55 2015
@@ -418,10 +418,11 @@
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 *ext;
time_t now;
- char *ext;
-
- if (ast_str_strlen(*filename) && !is_new) {
+
+ if (ast_str_strlen(*filename)
+ && !is_new) {
return;
}
@@ -429,15 +430,16 @@
ast_str_reset(*filename);
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 {
/* 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);
}
}
ast_str_append(filename, 0, ",a");
More information about the svn-commits
mailing list