iwmbtfw(8): Fix compilation on platforms using gcc.

X-MFC with:	r351197
This commit is contained in:
Vladimir Kondratyev 2019-08-18 23:10:07 +00:00
parent 3e5e1b5135
commit 6565f65ce1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351199

View File

@ -68,7 +68,7 @@ iwmbt_send_fragment(struct libusb_device_handle *hdl,
&transferred,
timeout);
if (ret < 0 || transferred != IWMBT_HCI_CMD_SIZE(cmd)) {
if (ret < 0 || transferred != (int)IWMBT_HCI_CMD_SIZE(cmd)) {
iwmbt_err("libusb_bulk_transfer() failed: err=%s, size=%zu",
libusb_strerror(ret),
IWMBT_HCI_CMD_SIZE(cmd));