Diff between 73b28a10cbe84435e915bc73a410bd7fe079a976 and b57f335c5008ba3cad74cc8c68be2952266d96cf

Changed Files

File Additions Deletions Status
plugins/policy.c +4 -4 modified

Full Patch

diff --git a/plugins/policy.c b/plugins/policy.c
index 8098689..7687203 100644
--- a/plugins/policy.c
+++ b/plugins/policy.c
@@ -61,19 +61,19 @@ struct reconnect_data {
 	GSList *services;
 	guint timer;
 	bool active;
-	int attempt;
+	unsigned int attempt;
 };
 
 static const char *default_reconnect[] = {
 			HSP_AG_UUID, HFP_AG_UUID, A2DP_SOURCE_UUID, NULL };
 static char **reconnect_uuids = NULL;
 
-static const int default_attempts = 7;
-static int reconnect_attempts = 0;
+static const size_t default_attempts = 7;
+static size_t reconnect_attempts = 0;
 
 static const int default_intervals[] = { 1, 2, 4, 8, 16, 32, 64 };
 static int *reconnect_intervals = NULL;
-static int reconnect_intervals_len = 0;
+static size_t reconnect_intervals_len = 0;
 
 static GSList *reconnects = NULL;