提交 f1a676d5 authored 作者: Michael Jerris's avatar Michael Jerris

fix newer freebsd builds.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6165 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b1480907
...@@ -93,7 +93,7 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(char *to, char *from, char *he ...@@ -93,7 +93,7 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(char *to, char *from, char *he
unsigned char out[B64BUFFLEN + 512]; unsigned char out[B64BUFFLEN + 512];
char *path = NULL; char *path = NULL;
snprintf(filename, 80, "%smail.%ld%04x", SWITCH_GLOBAL_dirs.temp_dir, time(NULL), rand() & 0xffff); snprintf(filename, 80, "%smail.%d%04x", SWITCH_GLOBAL_dirs.temp_dir, (int)time(NULL), rand() & 0xffff);
if ((fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644))) { if ((fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644))) {
if (file) { if (file) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论