summaryrefslogtreecommitdiff
path: root/bus/main.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-02-08 17:15:05 +0400
committerSimon McVittie <smcv@collabora.com>2022-07-15 16:26:18 +0100
commit7d20a3c6049f96f396ac757a6954554dfb6452c8 (patch)
treeeafb0ed3ae15546245906b56033512c3775f6315 /bus/main.c
parentc100e6e9e531457313292fb7c2b80a2fbd2c78bc (diff)
downloaddbus-7d20a3c6049f96f396ac757a6954554dfb6452c8.tar.gz
dbus: make _dbus_close_socket() take DBusSocket*
This will allow to invalidate the socket in the following commit. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'bus/main.c')
-rw-r--r--bus/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bus/main.c b/bus/main.c
index 5f756d5c..5614f244 100644
--- a/bus/main.c
+++ b/bus/main.c
@@ -387,10 +387,10 @@ close_reload_pipe (DBusWatch **watch)
_dbus_watch_unref (*watch);
*watch = NULL;
- _dbus_close_socket (reload_pipe[RELOAD_READ_END], NULL);
+ _dbus_close_socket (&reload_pipe[RELOAD_READ_END], NULL);
_dbus_socket_invalidate (&reload_pipe[RELOAD_READ_END]);
- _dbus_close_socket (reload_pipe[RELOAD_WRITE_END], NULL);
+ _dbus_close_socket (&reload_pipe[RELOAD_WRITE_END], NULL);
_dbus_socket_invalidate (&reload_pipe[RELOAD_WRITE_END]);
}
#endif /* DBUS_UNIX */