mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-04-20 20:00:38 +02:00
fix some "unused result" warnings in dbus-launch and dbus-spawn
Needed to avoid -Werror
This commit is contained in:
parent
d365dd8141
commit
ade5c7ad33
2 changed files with 5 additions and 4 deletions
|
|
@ -1079,7 +1079,8 @@ babysit (pid_t grandchild_pid,
|
|||
else if (pfds[1].revents & _DBUS_POLLIN)
|
||||
{
|
||||
char b;
|
||||
read (sigchld_pipe[READ_END], &b, 1);
|
||||
if (read (sigchld_pipe[READ_END], &b, 1) == -1)
|
||||
/* ignore */;
|
||||
/* do waitpid check */
|
||||
check_babysit_events (grandchild_pid, parent_pipe, 0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -365,9 +365,9 @@ print_variables (const char *bus_address, pid_t bus_pid, long bus_wid,
|
|||
{
|
||||
if (binary_syntax)
|
||||
{
|
||||
write (1, bus_address, strlen (bus_address) + 1);
|
||||
write (1, &bus_pid, sizeof bus_pid);
|
||||
write (1, &bus_wid, sizeof bus_wid);
|
||||
do_write (1, bus_address, strlen (bus_address) + 1);
|
||||
do_write (1, &bus_pid, sizeof bus_pid);
|
||||
do_write (1, &bus_wid, sizeof bus_wid);
|
||||
return;
|
||||
}
|
||||
else if (c_shell_syntax)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue