Rollback changes to submit TIZEN:COMMON project
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / bt-service-network.c
index 81d0d59..fd5ae9b 100644 (file)
@@ -22,7 +22,9 @@
 #include <glib.h>
 #include <dlog.h>
 #include <string.h>
+#if !defined(LIBNOTIFY_SUPPORT) && !defined(LIBNOTIFICATION_SUPPORT)
 #include <syspopup_caller.h>
+#endif
 #include "bluetooth-api.h"
 #include "bt-service-network.h"
 #include "bt-service-common.h"
@@ -254,7 +256,7 @@ int _bt_network_connect(int request_id, int role,
        DBusGProxy *profile_proxy;
        DBusGConnection *conn;
 
-       BT_CHECK_PARAMETER(device_address);
+       BT_CHECK_PARAMETER(device_address, return);
 
        switch (role) {
        case BLUETOOTH_NETWORK_PANU_ROLE:
@@ -322,7 +324,7 @@ int _bt_network_disconnect(int request_id,
        DBusGProxy *profile_proxy;
        DBusGConnection *conn;
 
-       BT_CHECK_PARAMETER(device_address);
+       BT_CHECK_PARAMETER(device_address, return);
 
        adapter_proxy = _bt_get_adapter_proxy();
        retv_if(adapter_proxy == NULL, BLUETOOTH_ERROR_INTERNAL);