diff options
author | Ian Lance Taylor <iant@google.com> | 2015-09-17 17:08:04 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2015-09-17 13:08:04 -0400 |
commit | 750cdaf713adb0a6c873f729ec7ac48ec4cd25b8 (patch) | |
tree | cc14e8aca96caac59fd9c4d94628cbcdfbb8bd41 /libbacktrace/posix.c | |
parent | 1eb50e95fb660639b8cda502a69f2ee86d74d5e4 (diff) | |
download | gcc-750cdaf713adb0a6c873f729ec7ac48ec4cd25b8.tar.gz |
posix.c (backtrace_open): Cast second argument of open() to int.
2015-09-17 Ian Lance Taylor <iant@google.com>
* posix.c (backtrace_open): Cast second argument of open() to int.
From-SVN: r227881
Diffstat (limited to 'libbacktrace/posix.c')
-rw-r--r-- | libbacktrace/posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbacktrace/posix.c b/libbacktrace/posix.c index 7fa7cd0d5da..f0419a0aa4c 100644 --- a/libbacktrace/posix.c +++ b/libbacktrace/posix.c @@ -64,7 +64,7 @@ backtrace_open (const char *filename, backtrace_error_callback error_callback, if (does_not_exist != NULL) *does_not_exist = 0; - descriptor = open (filename, O_RDONLY | O_BINARY | O_CLOEXEC); + descriptor = open (filename, (int) (O_RDONLY | O_BINARY | O_CLOEXEC)); if (descriptor < 0) { if (does_not_exist != NULL && errno == ENOENT) |