Loading fs_mgr/tools/dmuserd.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -81,7 +81,7 @@ ssize_t write_all(int fd, void* buf, size_t len) { ssize_t total = 0; ssize_t total = 0; ssize_t once; ssize_t once; while (total < len) { while (total < static_cast<ssize_t>(len)) { once = write(fd, buf_c + total, len - total); once = write(fd, buf_c + total, len - total); if (once < 0) return once; if (once < 0) return once; if (once == 0) { if (once == 0) { Loading @@ -99,7 +99,7 @@ ssize_t read_all(int fd, void* buf, size_t len) { ssize_t total = 0; ssize_t total = 0; ssize_t once; ssize_t once; while (total < len) { while (total < static_cast<ssize_t>(len)) { once = read(fd, buf_c + total, len - total); once = read(fd, buf_c + total, len - total); if (once < 0) return once; if (once < 0) return once; if (once == 0) { if (once == 0) { Loading Loading
fs_mgr/tools/dmuserd.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -81,7 +81,7 @@ ssize_t write_all(int fd, void* buf, size_t len) { ssize_t total = 0; ssize_t total = 0; ssize_t once; ssize_t once; while (total < len) { while (total < static_cast<ssize_t>(len)) { once = write(fd, buf_c + total, len - total); once = write(fd, buf_c + total, len - total); if (once < 0) return once; if (once < 0) return once; if (once == 0) { if (once == 0) { Loading @@ -99,7 +99,7 @@ ssize_t read_all(int fd, void* buf, size_t len) { ssize_t total = 0; ssize_t total = 0; ssize_t once; ssize_t once; while (total < len) { while (total < static_cast<ssize_t>(len)) { once = read(fd, buf_c + total, len - total); once = read(fd, buf_c + total, len - total); if (once < 0) return once; if (once < 0) return once; if (once == 0) { if (once == 0) { Loading