git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9538
d0543943-73ff-0310-b7d9-
9358b9ac24b2
}
- unlink(announce);
+ if (unlink(announce) != 0) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", announce);
+ }
ret = tmp_path;
end:
end:
if (forward_file_path) {
- unlink(forward_file_path);
+ if (unlink(forward_file_path) != 0) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", forward_file_path);
+ }
}
return status;