Re: [PATCH BlueZ 07/14] mgmt: Add LE scanning callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Claudio,

On Fri, Jul 27, 2012 at 6:29 PM, João Paulo Rechi Vita
<jprvita@xxxxxxxxxxxxx> wrote:
> +       cp->type = info->discov_type;
> +
> +       if (write(mgmt_sock, buf, sizeof(buf)) < 0) {
> +               int err = errno;
> +               error("failed to write to MGMT socket: %s", strerror(err));
> +               return -err;

For consistency, "err" should be a negative value, and use
"strerror(-err)" and "return err" instead.

Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
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


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux