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>
* advertising actually exists.
*/
if (result == CA_STATUS_OK
- && !(CAPeripheralRegisterGattServices(context)
+ && !(CAPeripheralRegisterGattServices(&g_context)
&& CAPeripheralRegisterAdvertisements(&g_context)))
{
result = CA_STATUS_FAILED;