X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bt-service%2Fbt-service-obex-agent.c;h=f8f3af7d9e019fffc3801f987f24a56336f9698d;hb=746add44a75b1d26885dea82fe90652bae4de57c;hp=092c99639dd4941a0e6c046338d351c97ce984ca;hpb=0571628caff05a8a62926837db59e8ca95329e96;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git
diff --git a/bt-service/bt-service-obex-agent.c b/bt-service/bt-service-obex-agent.c
index 092c996..f8f3af7 100644
--- a/bt-service/bt-service-obex-agent.c
+++ b/bt-service/bt-service-obex-agent.c
@@ -87,7 +87,7 @@ static const gchar obex_service_agent_xml1[] =
" "
" "
" "
- " "
+" "
" "
" "
" "
@@ -122,11 +122,11 @@ static const gchar obex_service_agent_xml2[] =
static const gchar obex_service_reply_xml3[] =
""
-" "
+" "
" "
-" "
-" "
-" "
+" "
+" "
+" "
"";
static bt_obex_agent_info *__find_obex_agent_info(char *path)
@@ -194,9 +194,8 @@ static void __new_connection_method(GDBusConnection *connection,
if (info->name == NULL) {
info->name = sender;
} else {
- if (g_strcmp0(sender, info->name) != 0) {
+ if (g_strcmp0(sender, info->name) != 0)
goto fail;
- }
}
if (info->request_cb == NULL)
@@ -240,9 +239,8 @@ static void __new_connection_method(GDBusConnection *connection,
sender = (char *)g_dbus_method_invocation_get_sender(invocation);
- if (g_strcmp0(sender, info->name) != 0) {
+ if (g_strcmp0(sender, info->name) != 0)
goto fail;
- }
if (info->progress_cb == NULL)
goto fail;
@@ -285,9 +283,8 @@ static void __new_connection_method(GDBusConnection *connection,
sender = (char *)g_dbus_method_invocation_get_sender(invocation);
- if (g_strcmp0(sender, info->name) != 0) {
+ if (g_strcmp0(sender, info->name) != 0)
goto fail;
- }
if (info->error_cb == NULL)
goto fail;
@@ -325,9 +322,8 @@ static void __new_connection_method(GDBusConnection *connection,
sender = (char *)g_dbus_method_invocation_get_sender(invocation);
- if (g_strcmp0(sender, info->name) != 0) {
+ if (g_strcmp0(sender, info->name) != 0)
goto fail;
- }
if (info->complete_cb == NULL)
goto fail;
@@ -364,9 +360,8 @@ static void __new_connection_method(GDBusConnection *connection,
if (info->name) {
/*In H2 if user denies auth,release will come without request and hence
info->name will be NULL */
- if (g_strcmp0(sender, info->name) != 0) {
+ if (g_strcmp0(sender, info->name) != 0)
goto fail;
- }
}
if (info->release_cb == NULL)