mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 05:18:31 +00:00
Fix for -Wunused-but-set-variable required compiler. : mod_freetdm mod_avmd mod_cidlookup mod_ladspa mod_lcr mod_nibblebill mod_rss mod_vdm mod_dahdi_codec mod_skinny mod_cdr_pg_csv
This commit is contained in:
1 parent
5bcf487df9
commit
ba7dc9fde8
13 files changed
+23
-44
No files matched your search
@@ -160,7 +160,6 @@ static void do_rotate(cdr_fd_t *fd)
|
||||
char date[80] = "";
|
||||
switch_size_t retsize;
|
||||
char *p;
|
||||
size_t len;
|
||||
|
||||
close(fd->fd);
|
||||
fd->fd = -1;
|
||||
@@ -169,7 +168,6 @@ static void do_rotate(cdr_fd_t *fd)
|
||||
switch_time_exp_lt(&tm, switch_micro_time_now());
|
||||
switch_strftime_nocheck(date, &retsize, sizeof(date), "%Y-%m-%d-%H-%M-%S", &tm);
|
||||
|
||||
len = strlen(fd->path) + strlen(date) + 2;
|
||||
p = switch_mprintf("%s.%s", fd->path, date);
|
||||
assert(p);
|
||||
switch_file_rename(fd->path, p, globals.pool);
|
||||
|
||||
Reference in new issue
Block a user