Index: runtime/bin/fdutils_android.cc |
diff --git a/runtime/bin/fdutils_android.cc b/runtime/bin/fdutils_android.cc |
index 83e4913ad3af009f94cd03bc21d74580345c3317..3c22a04ebadd90bd56a59f74e4a17474a222dd7f 100644 |
--- a/runtime/bin/fdutils_android.cc |
+++ b/runtime/bin/fdutils_android.cc |
@@ -5,15 +5,15 @@ |
#include "platform/globals.h" |
#if defined(TARGET_OS_ANDROID) |
+#include "bin/fdutils.h" |
+ |
#include <errno.h> // NOLINT |
#include <fcntl.h> // NOLINT |
-#include <unistd.h> // NOLINT |
#include <sys/ioctl.h> // NOLINT |
+#include <unistd.h> // NOLINT |
-#include "bin/fdutils.h" |
#include "platform/signal_blocker.h" |
- |
namespace dart { |
namespace bin { |
@@ -72,9 +72,7 @@ intptr_t FDUtils::AvailableBytes(intptr_t fd) { |
if (result < 0) { |
return result; |
} |
-#ifdef DEBUG |
ASSERT(available >= 0); |
-#endif |
return static_cast<intptr_t>(available); |
} |
@@ -98,7 +96,7 @@ ssize_t FDUtils::ReadFromBlocking(int fd, void* buffer, size_t count) { |
ASSERT(errno != EWOULDBLOCK); |
return -1; |
} else { |
- ASSERT((bytes_read > 0)); |
+ ASSERT(bytes_read > 0); |
remaining -= bytes_read; |
buffer_pos += bytes_read; |
} |