Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 8ff1fa70 authored by Rolf Eike Beer's avatar Rolf Eike Beer

use ssize_t for return value of write()

parent fcbcf0f1
......@@ -469,7 +469,7 @@ static int better_write(int fd, const char *buffer, int len)
{
size_t writtenBytes = 0;
while(writtenBytes < len) {
int result = write(fd, buffer + writtenBytes, len - writtenBytes);
ssize_t result = write(fd, buffer + writtenBytes, len - writtenBytes);
if (result < 0) {
if (errno != EAGAIN && errno != EINTR) {
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment