From ba80e7d7c456bcacde69bcc2f68dec7b74378aab Mon Sep 17 00:00:00 2001 From: "sung.goo.kim" Date: Wed, 6 Jan 2016 11:46:57 +0900 Subject: [PATCH] Fix type error (IOTCON_RESPONSE_RESULT_DELETED) Change-Id: I3714bfafd91357883673d37a9ab58c4db5ac4f1b --- daemon/icd-ioty-ocprocess.c | 2 +- lib/include/iotcon-constant.h | 2 +- test/iotcon-test-basic-client.c | 2 +- test/iotcon-test-basic-server.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/icd-ioty-ocprocess.c b/daemon/icd-ioty-ocprocess.c index e992a3e..a82da84 100644 --- a/daemon/icd-ioty-ocprocess.c +++ b/daemon/icd-ioty-ocprocess.c @@ -587,7 +587,7 @@ static int _ocprocess_parse_oic_result(OCStackResult result) res = IOTCON_RESPONSE_RESOURCE_CREATED; break; case OC_STACK_RESOURCE_DELETED: - res = IOTCON_RESPONSE_RESULT_DELETED; + res = IOTCON_RESPONSE_RESOURCE_DELETED; break; case OC_STACK_UNAUTHORIZED_REQ: res = IOTCON_RESPONSE_FORBIDDEN; diff --git a/lib/include/iotcon-constant.h b/lib/include/iotcon-constant.h index 479a73d..99413c6 100644 --- a/lib/include/iotcon-constant.h +++ b/lib/include/iotcon-constant.h @@ -133,7 +133,7 @@ typedef enum { IOTCON_RESPONSE_OK = 0, /**< Indicates result of response for success */ IOTCON_RESPONSE_ERROR, /**< Indicates result of response for something error */ IOTCON_RESPONSE_RESOURCE_CREATED, /**< Indicates result of response for resource has created */ - IOTCON_RESPONSE_RESULT_DELETED, /**< Indicates result of response for resource has deleted */ + IOTCON_RESPONSE_RESOURCE_DELETED, /**< Indicates result of response for resource has deleted */ IOTCON_RESPONSE_SLOW, /**< Indicates result of response for slow resource */ IOTCON_RESPONSE_FORBIDDEN, /**< Indicates result of response for accessing unauthorized resource */ } iotcon_response_result_e; diff --git a/test/iotcon-test-basic-client.c b/test/iotcon-test-basic-client.c index 21369be..dd62e46 100644 --- a/test/iotcon-test-basic-client.c +++ b/test/iotcon-test-basic-client.c @@ -99,7 +99,7 @@ static void _on_response_delete(iotcon_remote_resource_h resource, } if (IOTCON_RESPONSE_OK != response_result - && IOTCON_RESPONSE_RESULT_DELETED != response_result) { + && IOTCON_RESPONSE_RESOURCE_DELETED != response_result) { ERR("_on_response_delete Response error(%d)", response_result); return; } diff --git a/test/iotcon-test-basic-server.c b/test/iotcon-test-basic-server.c index 21d63f2..69aa4b2 100644 --- a/test/iotcon-test-basic-server.c +++ b/test/iotcon-test-basic-server.c @@ -416,7 +416,7 @@ static int _request_handler_delete(iotcon_resource_h resource, iotcon_request_h return -1; } - ret = _send_response(request, NULL, IOTCON_RESPONSE_RESULT_DELETED); + ret = _send_response(request, NULL, IOTCON_RESPONSE_RESOURCE_DELETED); if (0 != ret) { ERR("_send_response() Fail(%d)", ret); return -1; -- 2.7.4