diff options
author | Steve Murphy <murf@digium.com> | 2006-12-21 19:44:20 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2006-12-21 19:44:20 +0000 |
commit | 7b338004bfc2934ce4d99160c47a2e1b1449e0ee (patch) | |
tree | 9213841cb68bd7576686b8baea3c095dcc4fcdd2 /apps/app_dictate.c | |
parent | a2e6c6277f31dcc9464070e0021a40598a7e9979 (diff) |
a quick fix to app_sms.c to get rid of cursed compiler warnings so I can compile under --enable-dev-mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_dictate.c')
-rw-r--r-- | apps/app_dictate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_dictate.c b/apps/app_dictate.c index 0c46118e4..661a4a237 100644 --- a/apps/app_dictate.c +++ b/apps/app_dictate.c @@ -150,7 +150,7 @@ static int dictate_exec(struct ast_channel *chan, void *data) } snprintf(path, len, "%s/%s", base, filein); - fs = ast_writefile(path, "raw", NULL, O_CREAT|O_APPEND, 0, 0700); + fs = ast_writefile(path, "raw", NULL, O_CREAT|O_APPEND, 0, AST_FILE_MODE); mode = DMODE_PLAY; memset(&flags, 0, sizeof(flags)); ast_set_flag(&flags, DFLAG_PAUSE); @@ -307,7 +307,7 @@ static int dictate_exec(struct ast_channel *chan, void *data) } else { oflags |= O_APPEND; } - fs = ast_writefile(path, "raw", NULL, oflags, 0, 0700); + fs = ast_writefile(path, "raw", NULL, oflags, 0, AST_FILE_MODE); if (ast_test_flag(&flags, DFLAG_TRUNC)) { ast_seekstream(fs, 0, SEEK_SET); ast_clear_flag(&flags, DFLAG_TRUNC); |