aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dictate.c
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-21 19:44:20 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-21 19:44:20 +0000
commit322326058e7ad82eeb971673895f71bcc3230244 (patch)
tree9213841cb68bd7576686b8baea3c095dcc4fcdd2 /apps/app_dictate.c
parent90ea800e9b095f3bd03c16373cd16a7a9a3c7bf9 (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: http://svn.digium.com/svn/asterisk/trunk@48767 f38db490-d61c-443f-a65b-d21fe96a405b
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);