fixed build error issue related TCP Adapter.
authorjihwan.seo <jihwan.seo@samsung.com>
Thu, 21 Apr 2016 03:18:28 +0000 (12:18 +0900)
committerJon A. Cruz <jon@joncruz.org>
Thu, 21 Apr 2016 04:56:23 +0000 (04:56 +0000)
some parameter of the callback realted to keepalive was not correct.

Change-Id: I21975c99221a506de722992280d929d446712a28
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7867
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
resource/csdk/stack/src/ocstack.c

index 920d5dd..3caafba 100644 (file)
@@ -2041,7 +2041,7 @@ OCStackResult OCInit1(OCMode mode, OCTransportFlags serverFlags, OCTransportFlag
     VERIFY_SUCCESS(result, OC_STACK_OK);
 
 #ifdef TCP_ADAPTER
-    CARegisterKeepAliveHandler(HandleKeepAliveConnCB);
+    CARegisterKeepAliveHandler(HandleKeepAliveConnCB, HandleKeepAliveDisconnCB);
 #endif
 
 #ifdef WITH_PRESENCE