summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoão Paulo Rechi Vita <joao.vita@gmail.com>2008-07-22 10:55:04 -0300
committerLennart Poettering <lennart@poettering.net>2008-09-11 01:12:03 +0300
commitd893a1ff530cc4fe5c3ad8623ba2eb9f89770914 (patch)
tree62bb37fe72d1ddb9b7970ec08355a14d66623497 /src
parentcadc6660dd6344f142c57fce306bde551f7a8685 (diff)
Remove block delimiters from single line if blocks
Diffstat (limited to 'src')
-rw-r--r--src/modules/module-bt-discover.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/module-bt-discover.c b/src/modules/module-bt-discover.c
index 9c18a863..8b662a13 100644
--- a/src/modules/module-bt-discover.c
+++ b/src/modules/module-bt-discover.c
@@ -141,9 +141,8 @@ static void print_devices(device_t *device_list) {
pa_log(" Connected = %d", device_list_i->connected);
pa_log(" UUIDs = ");
while (uuid_list_i != NULL) {
- if (strcmp(uuid_list_i->uuid, "UUID_HEAD") != 0) {
+ if (strcmp(uuid_list_i->uuid, "UUID_HEAD") != 0)
pa_log(" %s", uuid_list_i->uuid);
- }
uuid_list_i = uuid_list_i->next;
}
pa_log(" Address = %s", device_list_i->address);
@@ -228,12 +227,10 @@ static void detect_adapters(struct userdata *u) {
dbus_message_iter_next(&dict_i);
dbus_message_iter_recurse(&dict_i, &variant_i);
dbus_message_iter_get_basic(&variant_i, &value);
- if (strcmp(key, "Mode") == 0) {
+ if (strcmp(key, "Mode") == 0)
adapter_list_i->mode = pa_xstrdup(value);
- }
- else if (strcmp(key, "Address") == 0) {
+ else if (strcmp(key, "Address") == 0)
adapter_list_i->address = pa_xstrdup(value);
- }
}
dbus_message_iter_next(&element_i);
}