diff options
author | Fabien Proriol <fabien.proriol@jdsu.com> | 2016-07-28 16:06:48 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2016-07-29 13:58:00 +0300 |
commit | 8af7aac2b977b2b7bfa191c36c8e80f25e8e701d (patch) | |
tree | 9f88047cbb1a9eb640ab32e90994f93a6203ff79 | |
parent | 5f2c8a15228f58f1f7ac772b738fcc1b98b761d1 (diff) | |
download | bluez-8af7aac2b977b2b7bfa191c36c8e80f25e8e701d.tar.gz |
Fix obex protocol for powerpc
omtu and imtu is define as uint16_t in l2cap_get function (use with va_arg).
-rw-r--r-- | obexd/client/bluetooth.c | 4 | ||||
-rw-r--r-- | obexd/plugins/bluetooth.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/obexd/client/bluetooth.c b/obexd/client/bluetooth.c index be007de61..e35124a0c 100644 --- a/obexd/client/bluetooth.c +++ b/obexd/client/bluetooth.c @@ -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(""); diff --git a/obexd/plugins/bluetooth.c b/obexd/plugins/bluetooth.c index d8b872a3d..3ee54325f 100644 --- a/obexd/plugins/bluetooth.c +++ b/obexd/plugins/bluetooth.c @@ -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); |