Use correct variable type for watch id
diff --git a/plugins/hciops.c b/plugins/hciops.c
index c7be417..3cfc61e 100644
--- a/plugins/hciops.c
+++ b/plugins/hciops.c
@@ -253,7 +253,7 @@
struct g_io_info {
GIOChannel *channel;
- int watch_id;
+ guint watch_id;
int pin_length;
};
@@ -1025,7 +1025,7 @@
g_source_remove(io_data[hdev].watch_id);
g_io_channel_unref(io_data[hdev].channel);
- io_data[hdev].watch_id = -1;
+ io_data[hdev].watch_id = 0;
io_data[hdev].channel = NULL;
io_data[hdev].pin_length = -1;
}