RD Query response correction.
Also includes small minor clean up.
Change-Id: I279f91942d2806f20e0b17dab7f32477bba30849
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2386
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
return 0;
}
-int main(int argc , char *argv[])
+int main()
{
int in;
PlatformConfig cfg;
// limitations under the License.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include <vector>
-
#include "OCApi.h"
#include "OCPlatform.h"
if (!*uri)
{
OC_LOG_V(ERROR, TAG, "Copy failed..");
- return false;
+ return OC_STACK_ERROR;
}
*rt = OICStrdup(tLinks->rt);
if (!*rt)
{
OC_LOG_V(ERROR, TAG, "Copy failed..");
OICFree(*uri);
- return false;
+ return OC_STACK_ERROR;
}
*itf = OICStrdup(tLinks->itf);
if (!*itf)
OC_LOG_V(ERROR, TAG, "Copy failed..");
OICFree(*uri);
OICFree(*rt);
- return false;
+ return OC_STACK_ERROR;
}
- return true;
+ return OC_STACK_OK;
}
}
}
- return false;
+ return OC_STACK_ERROR;
}