From 042dee1b1fed5a745be4cca5af37ad8205421944 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 6 Apr 2009 10:25:41 -0300 Subject: [PATCH] obexd: Fix dead assignment. Value stored to 'watch' is never read. --- obexd/src/manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/obexd/src/manager.c b/obexd/src/manager.c index 42acd71ee..0abab9c05 100644 --- a/obexd/src/manager.c +++ b/obexd/src/manager.c @@ -1022,7 +1022,6 @@ static void find_adapter_reply(DBusPendingCall *call, gpointer user_data) DBusMessage *msg; DBusPendingCall *pcall; GIOChannel *io; - guint watch; const char *paddr = pending->address; const char *path; DBusError derr; @@ -1068,7 +1067,7 @@ static void find_adapter_reply(DBusPendingCall *call, gpointer user_data) /* Catches errors before authorization response comes */ io = g_io_channel_unix_new(pending->nsk); - watch = g_io_add_watch_full(io, G_PRIORITY_DEFAULT, + g_io_add_watch_full(io, G_PRIORITY_DEFAULT, G_IO_HUP | G_IO_ERR | G_IO_NVAL, service_error, NULL, NULL); g_io_channel_unref(io); -- 2.47.3