mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-24 08:40:30 +01:00
[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:
parent
922c6f3285
commit
e28c0ece17
1 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue