[gnome-bluetooth/gnome-2-28] Remove rfkill warning spout, when it's not actually an error



commit 2b92bb904b16bf4bf580730094345a17068ffe59
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Oct 7 16:04:42 2009 +0100

    Remove rfkill warning spout, when it's not actually an error

 lib/bluetooth-killswitch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-killswitch.c b/lib/bluetooth-killswitch.c
index f4927a1..e700871 100644
--- a/lib/bluetooth-killswitch.c
+++ b/lib/bluetooth-killswitch.c
@@ -286,7 +286,7 @@ bluetooth_killswitch_init (BluetoothKillswitch *killswitch)
 
 		len = read(fd, &event, sizeof(event));
 		if (len < 0) {
-			if (errno == -G_IO_ERROR_AGAIN)
+			if (errno == EAGAIN)
 				break;
 			g_message ("Reading of RFKILL events failed");
 			break;



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