[PATCH 03/10] sap-dummy: Use constants when setting ongoing call status

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

 



This improves readbility of whan new ongoing call status is being set.
---
 sap/sap-dummy.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sap/sap-dummy.c b/sap/sap-dummy.c
index 679adbb..9a21779 100644
--- a/sap/sap-dummy.c
+++ b/sap/sap-dummy.c
@@ -227,10 +227,10 @@ static DBusMessage *ongoing_call(DBusConnection *conn, DBusMessage *msg,
 	if (ongoing_call_status && !ongoing) {
 		/* An ongoing call has finished. Continue connection.*/
 		sap_status_ind(sap_data, SAP_STATUS_CHANGE_CARD_RESET);
-		ongoing_call_status = ongoing;
+		ongoing_call_status = FALSE;
 	} else if (!ongoing_call_status && ongoing) {
 		/* An ongoing call has started.*/
-		ongoing_call_status = ongoing;
+		ongoing_call_status = TRUE;
 	}
 
 	DBG("OngoingCall status set to %d", ongoing_call_status);
-- 
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