From d4b837f3cf64c0c92080766ac1de5725c27e776e Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Fri, 3 Jan 2014 21:55:19 -0400 Subject: [PATCH] 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] --- profiles/health/mcap_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.47.3