summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-07-19 11:28:42 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-07-19 11:28:42 +0000
commit06455ab12fe0df1278899ce31ae7a771495186ea (patch)
tree2d920840f7fc912be92b5bb81e2a6255825a6735
parentfb2c49cfc95ee82f77df6b8242199599f5e9f9ee (diff)
Minor coding style fixes
-rw-r--r--audio/headset.c12
-rw-r--r--audio/manager.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 38127a90..a95d5f46 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -386,7 +386,7 @@ static gboolean sco_connect_cb(GIOChannel *chan, GIOCondition cond,
hs->sco = chan;
c->io = NULL;
- g_slist_foreach(hs->pending, (GFunc)pending_connect_ok, device);
+ g_slist_foreach(hs->pending, (GFunc) pending_connect_ok, device);
g_slist_free(hs->pending);
hs->pending = NULL;
fcntl(sk, F_SETFL, 0);
@@ -396,7 +396,7 @@ static gboolean sco_connect_cb(GIOChannel *chan, GIOCondition cond,
return FALSE;
failed:
- g_slist_foreach(hs->pending, (GFunc)pending_connect_failed, device);
+ g_slist_foreach(hs->pending, (GFunc) pending_connect_failed, device);
g_slist_free(hs->pending);
hs->pending = NULL;
headset_set_state(device, HEADSET_STATE_CONNECTED);
@@ -519,14 +519,14 @@ static gboolean rfcomm_connect_cb(GIOChannel *chan, GIOCondition cond,
return FALSE;
}
- g_slist_foreach(hs->pending, (GFunc)pending_connect_ok, device);
+ g_slist_foreach(hs->pending, (GFunc) pending_connect_ok, device);
g_slist_free(hs->pending);
hs->pending = NULL;
return FALSE;
failed:
- g_slist_foreach(hs->pending, (GFunc)pending_connect_failed, device);
+ g_slist_foreach(hs->pending, (GFunc) pending_connect_failed, device);
g_slist_free(hs->pending);
hs->pending = NULL;
if (hs->rfcomm)
@@ -645,7 +645,7 @@ failed:
sdp_record_free(record);
if (reply)
dbus_message_unref(reply);
- g_slist_foreach(hs->pending, (GFunc)pending_connect_failed, device);
+ g_slist_foreach(hs->pending, (GFunc) pending_connect_failed, device);
g_slist_free(hs->pending);
hs->pending = NULL;
headset_set_state(device, HEADSET_STATE_DISCONNECTED);
@@ -747,7 +747,7 @@ failed:
if (msg)
dbus_message_unref(msg);
dbus_message_unref(reply);
- g_slist_foreach(hs->pending, (GFunc)pending_connect_failed, device);
+ g_slist_foreach(hs->pending, (GFunc) pending_connect_failed, device);
g_slist_free(hs->pending);
hs->pending = NULL;
headset_set_state(device, HEADSET_STATE_DISCONNECTED);
diff --git a/audio/manager.c b/audio/manager.c
index 23811ae2..b84d684b 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -1186,7 +1186,7 @@ static void manager_unregister(DBusConnection *conn, void *data)
info("Unregistered manager path");
if (devices) {
- g_slist_foreach(devices, (GFunc)remove_device, NULL);
+ g_slist_foreach(devices, (GFunc) remove_device, NULL);
g_slist_free(devices);
devices = NULL;
}