From 3608e53b79e3848a5be040538e6ab061ee148ec6 Mon Sep 17 00:00:00 2001 From: "jihwan.seo" Date: Tue, 13 Dec 2016 13:32:15 +0900 Subject: [PATCH] removed unreachable code in coap http Change-Id: I4ca17ced9d83d9624b948aefba60f01057652ae0 Signed-off-by: jihwan.seo Reviewed-on: https://gerrit.iotivity.org/gerrit/15541 Tested-by: jenkins-iotivity Reviewed-by: Dan Mihai Reviewed-by: JungYong KIM --- service/coap-http-proxy/src/CoapHttpHandler.c | 2 +- service/coap-http-proxy/src/CoapHttpParser.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/coap-http-proxy/src/CoapHttpHandler.c b/service/coap-http-proxy/src/CoapHttpHandler.c index 8e719cd..8e033e0 100644 --- a/service/coap-http-proxy/src/CoapHttpHandler.c +++ b/service/coap-http-proxy/src/CoapHttpHandler.c @@ -133,8 +133,8 @@ OCStackResult CHPTerminate() g_proxyHandle = NULL; g_isCHProxyInitialized = false; - return result; OIC_LOG_V(DEBUG, TAG, "%s OUT", __func__); + return result; } static void CHPGetProxyURI(OCHeaderOption* options, uint8_t *numOptions, char* uri, diff --git a/service/coap-http-proxy/src/CoapHttpParser.c b/service/coap-http-proxy/src/CoapHttpParser.c index f9c5ee4..23f23c6 100644 --- a/service/coap-http-proxy/src/CoapHttpParser.c +++ b/service/coap-http-proxy/src/CoapHttpParser.c @@ -781,7 +781,7 @@ static OCStackResult CHPInitializeEasyHandle(CURL** easyHandle, HttpRequest_t *r handleContext->payloadLength = req->payloadLength; handleContext->payload = req->payload; req->payloadCached = true; - break;; + break; case CHP_DELETE: OIC_LOG(DEBUG, TAG, "Sending DELETE request"); /* libcurl don't have direct option for sending DELETE */ -- 2.7.4