[dbus-spawn] Use correct sign values for variables

read() returns a signed value, whereas the byte count is unsigned.

Signed-off-by: Colin Walters <walters@verbum.org>
This commit is contained in:
Kimmo Hämäläinen 2010-03-16 13:55:13 -04:00 committed by Colin Walters
parent 922c6f3285
commit e28c0ece17

View file

@ -74,8 +74,8 @@ read_ints (int fd,
while (TRUE)
{
size_t chunk;
ssize_t to_read;
ssize_t chunk;
size_t to_read;
to_read = sizeof (int) * n_ints_in_buf - bytes;
@ -129,9 +129,9 @@ read_pid (int fd,
while (TRUE)
{
size_t chunk;
ssize_t to_read;
ssize_t chunk;
size_t to_read;
to_read = sizeof (pid_t) - bytes;
if (to_read == 0)