[PATCH 08/17] SAP: Use proper type instead of *void for disconnect_ind param

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

 



Use struct sap_connection as parameter type for clarity.
---
 sap/server.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sap/server.c b/sap/server.c
index c385baa..bc466d0 100644
--- a/sap/server.c
+++ b/sap/server.c
@@ -264,9 +264,8 @@ static int send_message(struct sap_connection *conn, void *buf, size_t size)
 	return written;
 }
 
-static int disconnect_ind(void *sap_device, uint8_t disc_type)
+static int disconnect_ind(struct sap_connection *conn, uint8_t disc_type)
 {
-	struct sap_connection *conn = sap_device;
 	char buf[SAP_BUF_SIZE];
 	struct sap_message *msg = (struct sap_message *) buf;
 	struct sap_parameter *param = (struct sap_parameter *) msg->param;
@@ -284,7 +283,7 @@ static int disconnect_ind(void *sap_device, uint8_t disc_type)
 	*param->val = disc_type;
 	size += PARAMETER_SIZE(SAP_PARAM_ID_DISCONNECT_IND_LEN);
 
-	return send_message(sap_device, buf, size);
+	return send_message(conn, buf, size);
 }
 
 static void connect_req(struct sap_connection *conn,
-- 
on behalf of ST-Ericsson

--
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