diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2013-07-29 09:59:31 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-07-30 12:50:57 +0300 |
commit | 04c1af82096f611e0ad29bb8df77ca51ce2a0059 (patch) | |
tree | 296e419ff3136ea58b9a31b49bddf9ff50b387b7 /profiles/scanparam | |
parent | 8de51036c192d973e76ba29e978040abcabc6b40 (diff) | |
download | bluez-04c1af82096f611e0ad29bb8df77ca51ce2a0059.tar.gz |
scanparam: Apply convention for "GSource id" like variable
By convention, BlueZ code checks for "Gsource id" like variables using:
if (source_id > 0)
...
Also fix the variable type to match that returned by
g_attrib_unregister().
Diffstat (limited to 'profiles/scanparam')
-rw-r--r-- | profiles/scanparam/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profiles/scanparam/scan.c b/profiles/scanparam/scan.c index 5b9df8652..ebdb7b855 100644 --- a/profiles/scanparam/scan.c +++ b/profiles/scanparam/scan.c @@ -61,7 +61,7 @@ struct scan { uint16_t window; uint16_t iwhandle; uint16_t refresh_handle; - uint16_t refresh_cb_id; + guint refresh_cb_id; }; static void write_scan_params(GAttrib *attrib, uint16_t handle) @@ -239,7 +239,7 @@ static void scan_param_remove(struct btd_service *service) { struct scan *scan = btd_service_get_user_data(service); - if (scan->attrib != NULL && scan->refresh_cb_id) + if (scan->attrib != NULL && scan->refresh_cb_id > 0) g_attrib_unregister(scan->attrib, scan->refresh_cb_id); btd_device_remove_attio_callback(scan->device, scan->attioid); |