[systemd-devel] [PATCH] util: arg 'nbytes' of loop_read/write should be of type ssize_t
fykcee1 at gmail.com
fykcee1 at gmail.com
Sun May 1 20:18:55 PDT 2011
Hi all,
loop_read/write will try to fill/read 'nbytes' of caller supplying buffer.
This argument is currently of type size_t, which is always true
for loop quit condition "while (nbytes > 0)", hence we change it to
type ssize_t here. This also helps to detect passed-in 'nbytes' of value -1
for example.
--
Regards,
- cee1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110502/2a449754/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-util-arg-nbytes-of-loop_read-write-should-be-of-type.patch
Type: text/x-patch
Size: 1866 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110502/2a449754/attachment.bin>
More information about the systemd-devel
mailing list