--- attrib/gatt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/attrib/gatt.c b/attrib/gatt.c index 9de07e4..3e6f040 100644 --- a/attrib/gatt.c +++ b/attrib/gatt.c @@ -734,8 +734,8 @@ static guint prepare_write(GAttrib *attrib, uint16_t handle, uint16_t offset, uint8_t *value, size_t vlen, GAttribResultFunc func, gpointer user_data); -static void prepare_write_cb(guint8 status, const guint8 *rpdu, - guint16 rlen, gpointer user_data) +static void prepare_write_cb(guint8 status, const guint8 *rpdu, guint16 rlen, + gpointer user_data) { struct write_long_data *long_write = user_data; @@ -747,7 +747,7 @@ static void prepare_write_cb(guint8 status, const guint8 *rpdu, /* Skip Prepare Write Response PDU header (5 bytes) */ long_write->offset += rlen - 5; - if (long_write->offset == long_write->vlen){ + if (long_write->offset == long_write->vlen) { execute_write(long_write->attrib, ATT_WRITE_ALL_PREP_WRITES, long_write->func, long_write->user_data); g_free(long_write->value); @@ -757,8 +757,8 @@ static void prepare_write_cb(guint8 status, const guint8 *rpdu, } prepare_write(long_write->attrib, long_write->handle, - long_write->offset, long_write->value, long_write->vlen, - long_write->func, long_write); + long_write->offset, long_write->value, long_write->vlen, + long_write->func, long_write); } static guint prepare_write(GAttrib *attrib, uint16_t handle, uint16_t offset, -- 1.7.9.5 -- 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