X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bt-service%2Fbt-service-rfcomm-server.c;h=dd967bc6509801a0f234e77bf5e5e02e3fed430f;hb=d3072a95f5ef23bf7749832d5873a5ee200aaffb;hp=0ec0d5d386baac7fc834481d1b64b9deff368518;hpb=41bfe957df119c7d3693451fe94b950bccf70904;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/bt-service/bt-service-rfcomm-server.c b/bt-service/bt-service-rfcomm-server.c old mode 100644 new mode 100755 index 0ec0d5d..dd967bc --- a/bt-service/bt-service-rfcomm-server.c +++ b/bt-service/bt-service-rfcomm-server.c @@ -1,11 +1,5 @@ /* - * Bluetooth-frwk - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hocheol Seo - * Girishashok Joshi - * Chanyeol Park + * 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. @@ -21,7 +15,6 @@ * */ -#include #include #include #include @@ -145,11 +138,10 @@ int _bt_rfcomm_server_check_existence(gboolean *existence) { BT_CHECK_PARAMETER(existence, return); - if (server_list && g_slist_length(server_list) > 0) { + if (server_list && g_slist_length(server_list) > 0) *existence = TRUE; - } else { + else *existence = FALSE; - } return BLUETOOTH_ERROR_NONE; } @@ -167,9 +159,9 @@ int _bt_rfcomm_server_check_termination(char *name) if (server_info == NULL) continue; - if (g_strcmp0(server_info->sender, name) == 0) { + if (g_strcmp0(server_info->sender, name) == 0) _bt_rfcomm_remove_socket(server_info->control_fd); - } + } return BLUETOOTH_ERROR_NONE;