From: Kevin Kane Date: Fri, 2 Dec 2016 22:02:17 +0000 (-0800) Subject: [IOT-1615] Correct return type of callback in SubOwnerClient X-Git-Tag: 1.3.0~1049^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86d47d4b65543d286338eb7de21d07b14cd6b2c4;p=platform%2Fupstream%2Fiotivity.git [IOT-1615] Correct return type of callback in SubOwnerClient Sample only built when MULTIPLE_OWNER=1 has callback that differs in return type from what's required. Change return type to the required OCStackApplicationResult and have the callback return OC_STACK_OK. Bug: https://jira.iotivity.org/browse/IOT-1615 Change-Id: I5f787f64a16f308c182067d20009decd29760730 Signed-off-by: Kevin Kane Reviewed-on: https://gerrit.iotivity.org/gerrit/15109 Tested-by: jenkins-iotivity Reviewed-by: Randeep Singh Reviewed-by: Alex Kelley Reviewed-by: Greg Zaverucha --- diff --git a/resource/csdk/security/provisioning/sample/subownerclient.c b/resource/csdk/security/provisioning/sample/subownerclient.c index d3456ef..7751e84 100644 --- a/resource/csdk/security/provisioning/sample/subownerclient.c +++ b/resource/csdk/security/provisioning/sample/subownerclient.c @@ -169,8 +169,7 @@ static void provisionAclCB(void* ctx, int nOfRes, OCProvisionResult_t* arr, bool } // response handler for LED requests. -static void LedCB(void *ctx, OCDoHandle UNUSED, - OCClientResponse *clientResponse) +static OCStackApplicationResult LedCB(void *ctx, OCDoHandle UNUSED, OCClientResponse *clientResponse) { if(clientResponse) { @@ -197,6 +196,7 @@ static void LedCB(void *ctx, OCDoHandle UNUSED, } g_doneCB = true; + return OC_STACK_OK; } static void inputPinCB(char* pin, size_t len)