summaryrefslogtreecommitdiff
path: root/apps/app_dictate.c
diff options
context:
space:
mode:
authorSteve Murphy <murf@digium.com>2006-12-21 19:44:20 +0000
committerSteve Murphy <murf@digium.com>2006-12-21 19:44:20 +0000
commit7b338004bfc2934ce4d99160c47a2e1b1449e0ee (patch)
tree9213841cb68bd7576686b8baea3c095dcc4fcdd2 /apps/app_dictate.c
parenta2e6c6277f31dcc9464070e0021a40598a7e9979 (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.c4
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);