[IOT-1615] Correct return type of callback in SubOwnerClient
authorKevin Kane <kkane@microsoft.com>
Fri, 2 Dec 2016 22:02:17 +0000 (14:02 -0800)
committerGreg Zaverucha <gregz@microsoft.com>
Wed, 7 Dec 2016 19:33:22 +0000 (19:33 +0000)
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 <kkane@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15109
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Reviewed-by: Alex Kelley <alexke@microsoft.com>
Reviewed-by: Greg Zaverucha <gregz@microsoft.com>
resource/csdk/security/provisioning/sample/subownerclient.c

index d3456ef..7751e84 100644 (file)
@@ -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)