[IOT-1185] Add OCResultToSuccess to ensure success.
authorJaehong Jo <jaehong.jo@samsung.com>
Thu, 7 Jul 2016 12:47:53 +0000 (21:47 +0900)
committerRandeep Singh <randeep.s@samsung.com>
Fri, 8 Jul 2016 05:22:18 +0000 (05:22 +0000)
commit5b24b2cd7572d6b7dffa9836e888086de1e7234d
treea8039adddf1e2b33f15aa12b6b86833b977fdc5c
parentda12b1f5bba0b0a320f18a595f243ec4dd793b88
[IOT-1185] Add OCResultToSuccess to ensure success.

If just check only OC_STACK_OK, it can cause problems.
Below value is success like OC_STACK_OK.
OC_STACK_RESOURCE_CREATED,
OC_STACK_RESOURCE_DELETED,
OC_STACK_CONTINUE.

BUG : https://jira.iotivity.org/browse/IOT-1185

Change-Id: I60b369138df00b98c4dbeb952ffba140aa902b27
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9217
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/csdk/stack/include/internal/ocstackinternal.h
resource/csdk/stack/src/ocstack.c