Linux: fixes for compilation with gcc-4.8 on IFC6410

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-03-19 09:24:57 -07:00
parent 62eb403e4d
commit 83df879f90

View File

@ -473,7 +473,7 @@ int open_log_file()
}
}
int fd = open(log_file_path, O_CREAT | O_WRONLY | O_DSYNC);
int fd = open(log_file_path, O_CREAT | O_WRONLY | O_DSYNC, 0x0777);
if (fd < 0) {
mavlink_and_console_log_critical(mavlink_fd, "[sdlog2] failed opening: %s", log_file_name);
@ -525,7 +525,7 @@ int open_perf_file(const char* str)
}
}
int fd = open(log_file_path, O_CREAT | O_WRONLY | O_DSYNC);
int fd = open(log_file_path, O_CREAT | O_WRONLY | O_DSYNC, 0x0777);
if (fd < 0) {
mavlink_and_console_log_critical(mavlink_fd, "[sdlog2] failed opening: %s", log_file_name);