Add TODO markers for changes to make the code easier to understand.

This commit is contained in:
Andrew Wood
2026-04-18 20:11:20 +01:00
parent ebefc02f4e
commit 7eedf884ea
+4
View File
@@ -294,6 +294,7 @@ static ssize_t pv__transfer_write_repeated(int fd, char *buf, size_t count, bool
return total_written;
}
/* TODO: make pv__transfer_read() return a boolean, for easier understanding. */
/*
* Read some data from the given file descriptor, updating the state.
@@ -632,6 +633,9 @@ static int pv__transfer_read(pvstate_t state, int fd, bool *eof_in, bool *eof_ou
}
/* TODO: make pv__transfer_write() return a boolean, for easier understanding. */
/*
* Write state->transfer.to_write bytes of data from the transfer buffer to the output.
*