Fix obex protocol for powerpc

omtu and imtu is define as uint16_t in l2cap_get function (use with va_arg).
This commit is contained in:
Fabien Proriol 2016-07-28 16:06:48 +02:00 committed by Luiz Augusto von Dentz
parent 5f2c8a1522
commit 8af7aac2b9
2 changed files with 4 additions and 4 deletions

View File

@ -443,8 +443,8 @@ static int bluetooth_getpacketopt(GIOChannel *io, int *tx_mtu, int *rx_mtu)
{
int sk = g_io_channel_unix_get_fd(io);
int type;
int omtu = -1;
int imtu = -1;
uint16_t omtu = BT_TX_MTU;
uint16_t imtu = BT_RX_MTU;
socklen_t len = sizeof(int);
DBG("");

View File

@ -75,8 +75,8 @@ static void connect_event(GIOChannel *io, GError *err, void *user_data)
struct bluetooth_profile *profile = user_data;
struct obex_server *server = profile->server;
int type;
int omtu = BT_TX_MTU;
int imtu = BT_RX_MTU;
uint16_t omtu = BT_TX_MTU;
uint16_t imtu = BT_RX_MTU;
gboolean stream = TRUE;
socklen_t len = sizeof(int);