Fix the coding style errors (bt-api)
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-request-sender.c
old mode 100755 (executable)
new mode 100644 (file)
index 202bdf0..b240fb8
@@ -1,11 +1,5 @@
 /*
- * Bluetooth-frwk
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
- *              Girishashok Joshi <girish.joshi@samsung.com>
- *              Chanyeol Park <chanyeol.park@samsung.com>
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -49,8 +43,6 @@ static GDBusProxy *__bt_gdbus_init_service_proxy(void)
        GDBusProxy *proxy;
        GError *err = NULL;
 
-       g_type_init();
-
        service_gconn = _bt_gdbus_get_system_gconn();
 
        if (!service_gconn)
@@ -167,8 +159,8 @@ static void __bt_get_event_info(int service_function, GArray *output,
        case BT_AV_SOURCE_DISCONNECT:
                *event_type = BT_A2DP_SOURCE_EVENT;
                *event = BLUETOOTH_EVENT_AV_SOURCE_DISCONNECTED;
-               ret_if (output == NULL);
-               *param_data = &g_array_index (output, char, 0);
+               ret_if(output == NULL);
+               *param_data = &g_array_index(output, char, 0);
                break;
        case BT_HF_CONNECT:
                *event_type = BT_HF_AGENT_EVENT;
@@ -554,6 +546,9 @@ int _bt_async_send_request(int service_type, int service_function,
 
                g_array_free(in_param5, TRUE);
                break;
+       default:
+               g_free(cb_data);
+               break;
        }
 
        return BLUETOOTH_ERROR_NONE;