From 3b2c361ebc6af0141f0f5873bb58d1309c44e658 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 14 Nov 2012 13:54:17 +0200 Subject: [PATCH] core: Minor coding style fixes --- src/adapter.c | 2 +- src/device.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/adapter.c b/src/adapter.c index 3f0929518..ea2d2ad21 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -2627,7 +2627,7 @@ static void convert_device_storage(struct btd_adapter *adapter) } static void convert_config(struct btd_adapter *adapter, const char *filename, - GKeyFile *key_file) + GKeyFile *key_file) { char address[18]; char str[MAX_NAME_LENGTH + 1]; diff --git a/src/device.c b/src/device.c index e09fe9852..4ca375b87 100644 --- a/src/device.c +++ b/src/device.c @@ -224,10 +224,10 @@ static gboolean store_device_info_cb(gpointer user_data) if (device->alias != NULL) g_key_file_set_string(key_file, "General", "Alias", - device->alias); + device->alias); g_key_file_set_boolean(key_file, "General", "Trusted", - device->trusted); + device->trusted); ba2str(adapter_get_address(device->adapter), adapter_addr); ba2str(&device->bdaddr, device_addr); @@ -1745,7 +1745,7 @@ static void load_info(struct btd_device *device, const gchar *local, /* Load alias */ device->alias = g_key_file_get_string(key_file, "General", "Alias", - NULL); + NULL); /* Load trust */ device->trusted = g_key_file_get_boolean(key_file, "General", -- 2.47.3