diff options
| author | Elliott Hughes <enh@google.com> | 2015-01-22 01:52:05 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-01-22 01:52:06 +0000 |
| commit | d1668a71df761eb1644496f3e2c77c16fd54bb06 (patch) | |
| tree | 9acfbeb2c5fc1e858bed6db341004df078a2d4ab /libc/bionic/open.cpp | |
| parent | 4f11c59b3f3acffe6c8e359296a9e38c4b7edfb6 (diff) | |
| parent | 8b5df3920f2843c9cdf04160517c1e8b77c992f5 (diff) | |
| download | bionic-d1668a71df761eb1644496f3e2c77c16fd54bb06.zip bionic-d1668a71df761eb1644496f3e2c77c16fd54bb06.tar.gz bionic-d1668a71df761eb1644496f3e2c77c16fd54bb06.tar.bz2 | |
Merge "Turn on -Wold-style-cast and fix the errors."
Diffstat (limited to 'libc/bionic/open.cpp')
| -rw-r--r-- | libc/bionic/open.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/bionic/open.cpp b/libc/bionic/open.cpp index bd832c0..a6d8086 100644 --- a/libc/bionic/open.cpp +++ b/libc/bionic/open.cpp @@ -54,7 +54,7 @@ int open(const char* pathname, int flags, ...) { if ((flags & O_CREAT) != 0) { va_list args; va_start(args, flags); - mode = (mode_t) va_arg(args, int); + mode = static_cast<mode_t>(va_arg(args, int)); va_end(args); } @@ -76,7 +76,7 @@ int openat(int fd, const char *pathname, int flags, ...) { if ((flags & O_CREAT) != 0) { va_list args; va_start(args, flags); - mode = (mode_t) va_arg(args, int); + mode = static_cast<mode_t>(va_arg(args, int)); va_end(args); } |
