From 83df879f905019a8bef8a357bfc6e215b44b2581 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Thu, 19 Mar 2015 09:24:57 -0700 Subject: [PATCH] Linux: fixes for compilation with gcc-4.8 on IFC6410 Signed-off-by: Mark Charlebois --- src/modules/sdlog2/sdlog2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index 7cca4c6fa5..7d27016703 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -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);