[RFC BlueZ 13/18] attrib: Fix coding style in prepare_write_cb()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 attrib/gatt.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/attrib/gatt.c b/attrib/gatt.c
index b36600a..f629fcf 100644
--- a/attrib/gatt.c
+++ b/attrib/gatt.c
@@ -781,8 +781,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;
 
@@ -794,7 +794,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);
@@ -804,8 +804,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




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux