Fix the coding style errors (bt-service)
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / bt-service-oob.c
old mode 100644 (file)
new mode 100755 (executable)
index 3fa096e..2762813
@@ -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.
@@ -82,10 +76,10 @@ int _bt_oob_read_local_data(bt_oob_data_t *local_oob_data)
                return BLUETOOTH_ERROR_INTERNAL;
        }
 
-       g_variant_get(reply ,"(@ay@ay)", &hash, &randomizer);
+       g_variant_get(reply"(@ay@ay)", &hash, &randomizer);
        g_variant_unref(reply);
 
-       if(hash != NULL){
+       if (hash != NULL) {
                local_oob_data->hash_len = (unsigned int)g_variant_get_size(hash);
                local_hash = (unsigned char *)g_variant_get_data(hash);
        } else {
@@ -95,7 +89,7 @@ int _bt_oob_read_local_data(bt_oob_data_t *local_oob_data)
 
        g_variant_unref(hash);
 
-       if(randomizer != NULL){
+       if (randomizer != NULL) {
                local_oob_data->randomizer_len = (unsigned int)g_variant_get_size(randomizer);
                local_randomizer = (unsigned char *)g_variant_get_data(randomizer);
        } else {