Formatting cleanups

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
James Golovich
2004-09-07 15:01:48 +00:00
parent 8d457d07c4
commit 550e8e56ba

6
file.c
View File

@@ -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.
*/
orig_fn = ast_strdupa(fn);
for (size=0;size<strlen(fn);size++)
for (size=0;size<strlen(fn);size++) {
if (fn[size] == '/')
fn[size] = '_';
}
size += (strlen(record_cache_dir) + 10);
buf = alloca(size);
@@ -889,8 +890,7 @@ struct ast_filestream *ast_writefile(char *filename, char *type, char *comment,
if (option_cache_record_files) {
fs->realfilename = build_filename(filename, ext);
fs->filename = strdup(fn);
}
else {
} else {
fs->realfilename = NULL;
fs->filename = strdup(filename);
}