Hi Szymon, On Mon, Jul 4, 2011 at 7:02 AM, Szymon Janc <szymon.janc@xxxxxxxxx> wrote: > + gstatus = g_io_channel_read_chars(io, buf, sizeof(buf), &bytes_read, > + &gerr); > + if (gstatus != G_IO_STATUS_NORMAL) { > + if (gerr) > + g_error_free(gerr); > + > + sap_error("error while reading from channel (%d)", gstatus); > + return TRUE; > + } You can pass NULL to the last argument of g_io_channel_read_chars() if you are not using the gerr (as in the case above). 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