Fixed Linux BLE peripheral content type mismatch.
authorOssama Othman <ossama.othman@intel.com>
Fri, 7 Aug 2015 19:05:14 +0000 (12:05 -0700)
committerErich Keane <erich.keane@intel.com>
Fri, 7 Aug 2015 22:53:36 +0000 (22:53 +0000)
A pointer to an incorrect context object was passed to the GATT
service registration function.  Pass a pointer to the correct one
(CAPeripheralContext*) instead.  Addresses an "incompatible pointer
type warning".

Change-Id: I3a256ac278a28659bcc2352955a0172eebdc1c90
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2143
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/connectivity/src/bt_le_adapter/linux/peripheral.c

index da07b5e..54a5479 100644 (file)
@@ -647,7 +647,7 @@ CAResult_t CAPeripheralStart(CALEContext * context)
      * advertising actually exists.
      */
     if (result == CA_STATUS_OK
-        && !(CAPeripheralRegisterGattServices(context)
+        && !(CAPeripheralRegisterGattServices(&g_context)
              && CAPeripheralRegisterAdvertisements(&g_context)))
     {
         result = CA_STATUS_FAILED;