Define mtu as u_int16_t not as int. This should fix problem with rfcomm

on sparc64.

Reported by:	Andrew Belashov <bel at orel dot ru>
Tested by:	Andrew Belashov <bel at orel dot ru>
MFC after:	3 days
This commit is contained in:
Maksim Yevmenkin 2006-08-24 16:51:02 +00:00
parent e6fcb75d5f
commit 231e95561a

View file

@ -1220,7 +1220,8 @@ ng_btsocket_rfcomm_session_create(ng_btsocket_rfcomm_session_p *sp,
ng_btsocket_rfcomm_session_p s = NULL;
struct sockaddr_l2cap l2sa;
struct sockopt l2sopt;
int mtu, error;
int error;
u_int16_t mtu;
mtx_assert(&ng_btsocket_rfcomm_sessions_mtx, MA_OWNED);