Prevent the buffer overflow error for adv data
[platform/core/connectivity/bluetooth-frwk.git] / plugin / headed.c
index ce3e261..96d35b7 100644 (file)
@@ -34,7 +34,6 @@
 #define BT_MAX_EVENT_STR_LENGTH        50
 #define BT_AGENT_SYSPOPUP_TIMEOUT_FOR_MULTIPLE_POPUPS 200
 
-#ifdef TIZEN_FEATURE_BT_DPM
 int bt_launch_dpm_popup(char *mode)
 {
        int ret = 0;
@@ -54,7 +53,6 @@ int bt_launch_dpm_popup(char *mode)
 
        return ret;
 }
-#endif
 
 static gboolean _bt_syspopup_timer_cb(gpointer user_data)
 {
@@ -319,11 +317,7 @@ int bt_app_control_send_launch_request(char *absolute_path)
 extern struct bluetooth_headed_plugin_t headed_plugin
 __attribute__ ((visibility("default")));
 struct bluetooth_headed_plugin_t headed_plugin = {
-#ifdef TIZEN_FEATURE_BT_DPM
        bt_launch_dpm_popup,
-#else
-               NULL,
-#endif
        bt_launch_system_popup,
        bt_destroy_popup_all,
        bt_launch_unable_to_pairing_syspopup,