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 /channels | |
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 'channels')
-rw-r--r-- | channels/chan_iax2.c | 2 | ||||
-rw-r--r-- | channels/chan_zap.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 1ada3a24d..6456f4637 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -1414,7 +1414,7 @@ static int try_firmware(char *s) ast_log(LOG_WARNING, "Cannot open '%s': %s\n", s, strerror(errno)); return -1; } - fd = open(s2, O_RDWR | O_CREAT | O_EXCL); + fd = open(s2, O_RDWR | O_CREAT | O_EXCL, AST_FILE_MODE); if (fd < 0) { ast_log(LOG_WARNING, "Cannot open '%s' for writing: %s\n", s2, strerror(errno)); close(ifd); diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 127b0ed03..5f267e2e7 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -10242,7 +10242,7 @@ static int start_pri(struct zt_pri *pri) for (i = 0; i < NUM_DCHANS; i++) { if (!pri->dchannels[i]) break; - pri->fds[i] = open("/dev/zap/channel", O_RDWR, 0600); + pri->fds[i] = open("/dev/zap/channel", O_RDWR); x = pri->dchannels[i]; if ((pri->fds[i] < 0) || (ioctl(pri->fds[i],ZT_SPECIFY,&x) == -1)) { ast_log(LOG_ERROR, "Unable to open D-channel %d (%s)\n", x, strerror(errno)); @@ -10359,7 +10359,7 @@ static int handle_pri_set_debug_file(int fd, int argc, char **argv) if (ast_strlen_zero(argv[4])) return RESULT_SHOWUSAGE; - myfd = open(argv[4], O_CREAT|O_WRONLY); + myfd = open(argv[4], O_CREAT|O_WRONLY, AST_FILE_MODE); if (myfd < 0) { ast_cli(fd, "Unable to open '%s' for writing\n", argv[4]); return RESULT_SUCCESS; |