Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/3] Fix adapter->up declaration
@ 2011-09-12 12:06 Claudio Takahasi
  2011-09-12 12:06 ` [PATCH BlueZ 2/3] Serialize powering up/down in maemo6 plugin Claudio Takahasi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Claudio Takahasi @ 2011-09-12 12:06 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Claudio Takahasi

Minor code convention fix. This patch fix "up" variable declaration in
adapter structure. Convert "up" to gboolean making it compliant with
its usage.
---
 src/adapter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/adapter.c b/src/adapter.c
index bb7f5bc..7a5f7b3 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -105,7 +105,7 @@ struct service_auth {
 
 struct btd_adapter {
 	uint16_t dev_id;
-	int up;
+	gboolean up;
 	char *path;			/* adapter object path */
 	bdaddr_t bdaddr;		/* adapter Bluetooth Address */
 	uint32_t dev_class;		/* Class of Device */
@@ -2428,7 +2428,7 @@ int btd_adapter_stop(struct btd_adapter *adapter)
 	emit_property_changed(connection, adapter->path, ADAPTER_INTERFACE,
 				"Powered", DBUS_TYPE_BOOLEAN, &powered);
 
-	adapter->up = 0;
+	adapter->up = FALSE;
 	adapter->scan_mode = SCAN_DISABLED;
 	adapter->mode = MODE_OFF;
 	adapter->state = STATE_IDLE;
-- 
1.7.6


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-27  8:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-12 12:06 [PATCH BlueZ 1/3] Fix adapter->up declaration Claudio Takahasi
2011-09-12 12:06 ` [PATCH BlueZ 2/3] Serialize powering up/down in maemo6 plugin Claudio Takahasi
2011-09-12 12:06 ` [PATCH BlueZ 3/3] Return EALREADY if the adapter is already up/down Claudio Takahasi
2011-09-27  8:28 ` [PATCH BlueZ 1/3] Fix adapter->up declaration Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox