]> the.earth.li Git - onak.git/commitdiff
Switch charfuncs to returning number of read/written characters
authorJonathan McDowell <noodles@earth.li>
Fri, 15 Sep 2023 12:55:51 +0000 (18:25 +0530)
committerJonathan McDowell <noodles@earth.li>
Sat, 16 Sep 2023 09:33:33 +0000 (15:03 +0530)
The charfuncs prototypes were returning 0 for success ("I wrote all the
characters you asked me to") or 1 for failure. When we get to verifying
signatures over data we may not know how much to read, so change them to
returning 0 on error/no more data and otherwise the count of the amount
of data read/written.


No differences found