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