| Index: runtime/bin/file_android.cc
|
| diff --git a/runtime/bin/file_android.cc b/runtime/bin/file_android.cc
|
| index c6729147fb9bfe790f41a351c0ff074eea8bc92f..a115715b2c3209bb16b0071d1d75d5aad8665ffa 100644
|
| --- a/runtime/bin/file_android.cc
|
| +++ b/runtime/bin/file_android.cc
|
| @@ -9,11 +9,11 @@
|
|
|
| #include <errno.h> // NOLINT
|
| #include <fcntl.h> // NOLINT
|
| +#include <libgen.h> // NOLINT
|
| +#include <sys/sendfile.h> // NOLINT
|
| #include <sys/stat.h> // NOLINT
|
| #include <sys/types.h> // NOLINT
|
| -#include <sys/sendfile.h> // NOLINT
|
| #include <unistd.h> // NOLINT
|
| -#include <libgen.h> // NOLINT
|
|
|
| #include "bin/builtin.h"
|
| #include "bin/log.h"
|
| @@ -21,7 +21,6 @@
|
| #include "platform/signal_blocker.h"
|
| #include "platform/utils.h"
|
|
|
| -
|
| namespace dart {
|
| namespace bin {
|
|
|
| @@ -114,7 +113,7 @@ bool File::Flush() {
|
|
|
| bool File::Lock(File::LockType lock, int64_t start, int64_t end) {
|
| ASSERT(handle_->fd() >= 0);
|
| - ASSERT(end == -1 || end > start);
|
| + ASSERT((end == -1) || (end > start));
|
| struct flock fl;
|
| switch (lock) {
|
| case File::kLockUnlock:
|
| @@ -399,7 +398,7 @@ const char* File::LinkTarget(const char* pathname) {
|
|
|
|
|
| bool File::IsAbsolutePath(const char* pathname) {
|
| - return (pathname != NULL && pathname[0] == '/');
|
| + return ((pathname != NULL) && (pathname[0] == '/'));
|
| }
|
|
|
|
|
|
|