mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-25 22:18:07 +00:00
Formatting cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
6
file.c
6
file.c
@@ -867,9 +867,10 @@ struct ast_filestream *ast_writefile(char *filename, char *type, char *comment,
|
|||||||
What we are really doing is writing to record_cache_dir until we are done then we will mv the file into place.
|
What we are really doing is writing to record_cache_dir until we are done then we will mv the file into place.
|
||||||
*/
|
*/
|
||||||
orig_fn = ast_strdupa(fn);
|
orig_fn = ast_strdupa(fn);
|
||||||
for (size=0;size<strlen(fn);size++)
|
for (size=0;size<strlen(fn);size++) {
|
||||||
if (fn[size] == '/')
|
if (fn[size] == '/')
|
||||||
fn[size] = '_';
|
fn[size] = '_';
|
||||||
|
}
|
||||||
|
|
||||||
size += (strlen(record_cache_dir) + 10);
|
size += (strlen(record_cache_dir) + 10);
|
||||||
buf = alloca(size);
|
buf = alloca(size);
|
||||||
@@ -889,8 +890,7 @@ struct ast_filestream *ast_writefile(char *filename, char *type, char *comment,
|
|||||||
if (option_cache_record_files) {
|
if (option_cache_record_files) {
|
||||||
fs->realfilename = build_filename(filename, ext);
|
fs->realfilename = build_filename(filename, ext);
|
||||||
fs->filename = strdup(fn);
|
fs->filename = strdup(fn);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
fs->realfilename = NULL;
|
fs->realfilename = NULL;
|
||||||
fs->filename = strdup(filename);
|
fs->filename = strdup(filename);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user