projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
922c6f3
)
[dbus-spawn] Use correct sign values for variables
author
Kimmo Hämäläinen
<kimmo.hamalainen@nokia.com>
Tue, 16 Mar 2010 17:55:13 +0000
(13:55 -0400)
committer
Colin Walters
<walters@verbum.org>
Tue, 16 Mar 2010 17:55:13 +0000
(13:55 -0400)
read() returns a signed value, whereas the byte count is unsigned.
Signed-off-by: Colin Walters <walters@verbum.org>
dbus/dbus-spawn.c
patch
|
blob
|
history
diff --git
a/dbus/dbus-spawn.c
b/dbus/dbus-spawn.c
index
c08f927
..
9105415
100644
(file)
--- a/
dbus/dbus-spawn.c
+++ b/
dbus/dbus-spawn.c
@@
-74,8
+74,8
@@
read_ints (int fd,
while (TRUE)
{
- size_t chunk;
- s
s
ize_t to_read;
+ s
s
ize_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)
{
- s
ize_t chunk;
- s
s
ize_t to_read;
-
+ s
size_t chunk;
+ size_t to_read;
+
to_read = sizeof (pid_t) - bytes;
if (to_read == 0)