mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -197,7 +197,7 @@ int ast_monitor_start( struct ast_channel *chan, const char *format_spec,
|
||||
}
|
||||
if (!(monitor->read_stream = ast_writefile(monitor->read_filename,
|
||||
monitor->format, NULL,
|
||||
O_CREAT|O_TRUNC|O_WRONLY, 0, 0644))) {
|
||||
O_CREAT|O_TRUNC|O_WRONLY, 0, AST_FILE_MODE))) {
|
||||
ast_log(LOG_WARNING, "Could not create file %s\n",
|
||||
monitor->read_filename);
|
||||
free(monitor);
|
||||
@@ -209,7 +209,7 @@ int ast_monitor_start( struct ast_channel *chan, const char *format_spec,
|
||||
}
|
||||
if (!(monitor->write_stream = ast_writefile(monitor->write_filename,
|
||||
monitor->format, NULL,
|
||||
O_CREAT|O_TRUNC|O_WRONLY, 0, 0644))) {
|
||||
O_CREAT|O_TRUNC|O_WRONLY, 0, AST_FILE_MODE))) {
|
||||
ast_log(LOG_WARNING, "Could not create file %s\n",
|
||||
monitor->write_filename);
|
||||
ast_closestream(monitor->read_stream);
|
||||
|
Reference in New Issue
Block a user