summaryrefslogtreecommitdiff
path: root/attrib
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2013-07-19 13:34:10 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-07-24 08:41:58 -0700
commit9b1e7de26c639922e9054a9f6a75485aab20e19c (patch)
treee6be5f5dc85b2777670550d82319f92841fa8be5 /attrib
parentccd0e3783dbfeedd70a94a404580daffac772323 (diff)
attrib: Fix coding style in prepare_write_cb()
Diffstat (limited to 'attrib')
-rw-r--r--attrib/gatt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/attrib/gatt.c b/attrib/gatt.c
index 9de07e4e9..3e6f040ec 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,