Return-Path: From: Jefferson Delfes To: linux-bluetooth@vger.kernel.org Cc: Jefferson Delfes Subject: [PATCH BlueZ 16/16] attrib: Change command->pdu pointer type from guint8 Date: Thu, 28 Mar 2013 11:39:20 -0400 Message-Id: <1364485160-22720-17-git-send-email-jefferson.delfes@openbossa.org> In-Reply-To: <1364485160-22720-1-git-send-email-jefferson.delfes@openbossa.org> References: <1364485160-22720-1-git-send-email-jefferson.delfes@openbossa.org> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Change pointer type of command->pdu for a standard type. --- attrib/gattrib.c | 4 ++-- attrib/gattrib.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/attrib/gattrib.c b/attrib/gattrib.c index 3fdcf6d..950d805 100644 --- a/attrib/gattrib.c +++ b/attrib/gattrib.c @@ -63,7 +63,7 @@ struct _GAttrib { struct command { unsigned int id; uint8_t opcode; - guint8 *pdu; + uint8_t *pdu; guint16 len; uint8_t expected; bool sent; @@ -505,7 +505,7 @@ GAttrib *g_attrib_new(GIOChannel *io) return g_attrib_ref(attrib); } -unsigned int g_attrib_send(GAttrib *attrib, unsigned int id, const guint8 *pdu, +unsigned int g_attrib_send(GAttrib *attrib, unsigned int id, const uint8_t *pdu, guint16 len, GAttribResultFunc func, gpointer user_data, GDestroyNotify notify) { diff --git a/attrib/gattrib.h b/attrib/gattrib.h index 4404428..5f4477d 100644 --- a/attrib/gattrib.h +++ b/attrib/gattrib.h @@ -51,7 +51,7 @@ GIOChannel *g_attrib_get_channel(GAttrib *attrib); bool g_attrib_set_destroy_function(GAttrib *attrib, GDestroyNotify destroy, gpointer user_data); -unsigned int g_attrib_send(GAttrib *attrib, unsigned int id, const guint8 *pdu, +unsigned int g_attrib_send(GAttrib *attrib, unsigned int id, const uint8_t *pdu, guint16 len, GAttribResultFunc func, gpointer user_data, GDestroyNotify notify); -- 1.8.2