diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2014-01-03 21:55:19 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-01-06 21:20:40 +0200 |
commit | d4b837f3cf64c0c92080766ac1de5725c27e776e (patch) | |
tree | 37433a3692b1c098818d120202d07a9058afb153 /profiles/health | |
parent | 33df725cc683195ea33eb583a0373a013086a5fb (diff) | |
download | bluez-d4b837f3cf64c0c92080766ac1de5725c27e776e.tar.gz |
health: Fix struct mcap_csp "csp_req" field type
The values to which this field is set have nothing to do with MCAPCtrl.
Fixes clang error:
profiles/health/mcap_sync.c:767:24: error: comparison of constant 17
with expression of type 'MCAPCtrl' is always true
[-Werror,-Wtautological-constant-out-of-range-compare]
Diffstat (limited to 'profiles/health')
-rw-r--r-- | profiles/health/mcap_sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profiles/health/mcap_sync.c b/profiles/health/mcap_sync.c index 0d9f17d87..7c35e4a2f 100644 --- a/profiles/health/mcap_sync.c +++ b/profiles/health/mcap_sync.c @@ -55,7 +55,7 @@ struct mcap_csp { guint remote_caps; /* CSP-Slave: remote master got caps */ guint rem_req_acc; /* CSP-Slave: accuracy required by master */ guint ind_expected; /* CSP-Master: indication expected */ - MCAPCtrl csp_req; /* CSP-Master: Request control flag */ + uint8_t csp_req; /* CSP-Master: Request control flag */ guint ind_timer; /* CSP-Slave: indication timer */ guint set_timer; /* CSP-Slave: delayed set timer */ void *set_data; /* CSP-Slave: delayed set data */ |