diff --git a/sap/server.c b/sap/server.c
index c385baa..bc466d0 100644
--- a/sap/server.c
+++ b/sap/server.c
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;
*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,