This also makes connections list static. --- android/socket.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/android/socket.c b/android/socket.c index 1551e9b..36fffbd 100644 --- a/android/socket.c +++ b/android/socket.c @@ -60,14 +60,6 @@ #define MAP_MSG_TYPE_SMS_CDMA 0x04 #define DEFAULT_MAS_MSG_TYPE (MAP_MSG_TYPE_SMS_GSM | MAP_MSG_TYPE_SMS_CDMA) - -static bdaddr_t adapter_addr; - -static const uint8_t zero_uuid[16] = { 0 }; - -/* Simple list of RFCOMM connected sockets */ -GList *connections = NULL; - struct rfcomm_sock { int channel; /* RFCOMM channel */ BtIOSecLevel sec_level; @@ -92,6 +84,13 @@ struct rfcomm_channel { struct rfcomm_sock *rfsock; }; +static bdaddr_t adapter_addr; + +static const uint8_t zero_uuid[16] = { 0 }; + +/* Simple list of RFCOMM connected sockets */ +static GList *connections = NULL; + static struct rfcomm_channel servers[RFCOMM_CHANNEL_MAX + 1]; static int rfsock_set_buffer(struct rfcomm_sock *rfsock) -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html