summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
authorAlex Richardson <arichardson.kde@gmail.com>2022-05-15 11:34:48 +0100
committerAlex Richardson <arichardson.kde@gmail.com>2022-05-15 11:35:35 +0100
commit2480181af4ef0cae65aab303e103b58d8f6f2066 (patch)
tree9046dadb99477fdd2f3d96ad710b9ab352c21931 /bus
parent9722d621497b2e7324e696f4095f56e2a9307a7e (diff)
downloaddbus-2480181af4ef0cae65aab303e103b58d8f6f2066.tar.gz
dir-watch-kqueue: Silence -Wshadow warning
This should be the last warning that is preventing us from using -Werror for FreeBSD builds.
Diffstat (limited to 'bus')
-rw-r--r--bus/dir-watch-kqueue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bus/dir-watch-kqueue.c b/bus/dir-watch-kqueue.c
index 15519fcb..a4ed7ca5 100644
--- a/bus/dir-watch-kqueue.c
+++ b/bus/dir-watch-kqueue.c
@@ -51,7 +51,7 @@ static DBusWatch *watch = NULL;
static DBusLoop *loop = NULL;
static dbus_bool_t
-_handle_kqueue_watch (DBusWatch *watch, unsigned int flags, void *data)
+_handle_kqueue_watch (DBusWatch *_watch, unsigned int flags, void *data)
{
struct kevent ev;
struct timespec nullts = { 0, 0 };
@@ -73,6 +73,7 @@ _handle_kqueue_watch (DBusWatch *watch, unsigned int flags, void *data)
else if (res < 0 && errno == EBADF)
{
kq = -1;
+ _dbus_assert (watch == _watch);
if (watch != NULL)
{
_dbus_loop_remove_watch (loop, watch);