summaryrefslogtreecommitdiff
path: root/plugins/neard.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2013-02-15 13:09:16 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2013-02-15 16:29:19 +0200
commitc7521adc2fbaf39fc63861664eb00f3131633aa8 (patch)
tree6dbee417bd62b496576c8c42aa33f5570537ae84 /plugins/neard.c
parent46d9e2693d202b3484853b433a947ed29cb3c1f6 (diff)
downloadbluez-c7521adc2fbaf39fc63861664eb00f3131633aa8.tar.gz
neard: Use bool instead of gboolean for agent_register_postpone
There is no need to use gboolean as this flag is not used with any glib function.
Diffstat (limited to 'plugins/neard.c')
-rw-r--r--plugins/neard.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/neard.c b/plugins/neard.c
index 88a62291a..6025d89a7 100644
--- a/plugins/neard.c
+++ b/plugins/neard.c
@@ -50,7 +50,7 @@
static guint watcher_id = 0;
static char *neard_service = NULL;
-static gboolean agent_register_postpone = FALSE;
+static bool agent_register_postpone = false;
/* For NFC mimetype limits max OOB EIR size */
#define NFC_OOB_EIR_MAX UINT8_MAX
@@ -242,7 +242,7 @@ static void read_local_complete(struct btd_adapter *adapter,
dbus_message_unref(msg);
if (agent_register_postpone) {
- agent_register_postpone = FALSE;
+ agent_register_postpone = false;
register_agent();
}
@@ -274,7 +274,7 @@ static void bonding_complete(struct btd_adapter *adapter,
dbus_message_unref(msg);
if (agent_register_postpone) {
- agent_register_postpone = FALSE;
+ agent_register_postpone = false;
register_agent();
}
@@ -829,7 +829,7 @@ static void neard_appeared(DBusConnection *conn, void *user_data)
adapter = btd_adapter_get_default();
if (adapter && btd_adapter_check_oob_handler(adapter))
- agent_register_postpone = TRUE;
+ agent_register_postpone = true;
else
register_agent();
}