mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 17:27:02 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user