Use OCInit2() 05/157005/1 accepted/tizen/unified/20171024.071446 submit/tizen/20171023.094639
authorHongkuk, Son <hongkuk.son@samsung.com>
Mon, 23 Oct 2017 05:41:47 +0000 (14:41 +0900)
committerHongkuk Son <hongkuk.son@samsung.com>
Mon, 23 Oct 2017 06:12:15 +0000 (06:12 +0000)
Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I434fa1802aa5820b5eba6674e7e0bb49ff234458
(cherry picked from commit 37738cce049dfdd51c7a4533966363f7d2b0af64)

src/ic-ioty.c

index 35045c6..cf2c538 100644 (file)
@@ -252,16 +252,14 @@ int icl_ioty_init(pthread_t *out_thread)
                ERR("icl_ioty_mutex_lock() Fail(%d)", ret);
                return ret;
        }
-#ifdef TIZEN_PRODUCT_TV
+
        INFO("OCInit2() called..");
        ret = OCInit2(OC_CLIENT_SERVER, OC_DEFAULT_FLAGS, OC_DEFAULT_FLAGS,
                OC_ADAPTER_IP|OC_ADAPTER_TCP);
-#else
-       ret = OCInit(NULL, 0, OC_CLIENT_SERVER);
-#endif
+
        icl_ioty_mutex_unlock();
        if (OC_STACK_OK != ret) {
-               ERR("OCInit() Fail(%d)", ret);
+               ERR("OCInit2() Fail(%d)", ret);
                return ic_ioty_parse_oic_error(ret);
        }