Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83778c42 authored by David Anderson's avatar David Anderson Committed by Automerger Merge Worker
Browse files

Merge "follows the advice of -Wsign-compare" am: aa431b73

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1607017

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icf96c64a56ce36d35e308818a3ff2357dba7d15a
parents 2413424a aa431b73
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ ssize_t write_all(int fd, void* buf, size_t len) {
    ssize_t total = 0;
    ssize_t once;

    while (total < len) {
    while (total < static_cast<ssize_t>(len)) {
        once = write(fd, buf_c + total, len - total);
        if (once < 0) return once;
        if (once == 0) {
@@ -99,7 +99,7 @@ ssize_t read_all(int fd, void* buf, size_t len) {
    ssize_t total = 0;
    ssize_t once;

    while (total < len) {
    while (total < static_cast<ssize_t>(len)) {
        once = read(fd, buf_c + total, len - total);
        if (once < 0) return once;
        if (once == 0) {