A modelling and serializer library for Microsoft Azure IoTHub client applications
Dependents: sht15_remote_monitoring f767zi_mqtt remote_monitoring simplesample_amqp ... more
This library implements a serializer library to be used in projects involving Microsoft Azure IoT Hub connectivity. The code is replicated from https://github.com/Azure/azure-iot-sdks
Diff: datamarshaller.c
- Revision:
- 22:422d94bd3c18
- Parent:
- 21:6d3dea1abd9c
- Child:
- 33:30999a4089f1
diff -r 6d3dea1abd9c -r 422d94bd3c18 datamarshaller.c --- a/datamarshaller.c Tue Jan 24 15:24:19 2017 -0800 +++ b/datamarshaller.c Sat Jan 28 09:35:06 2017 -0800 @@ -41,9 +41,7 @@ DATA_MARSHALLER_HANDLE_DATA* result; /*Codes_SRS_DATA_MARSHALLER_99_019:[ DataMarshaller_Create shall return NULL if any argument is NULL.]*/ - if ( - (modelHandle == NULL) - ) + if (modelHandle == NULL) { result = NULL; LogError("(result = %s)", ENUM_TO_STRING(DATA_MARSHALLER_RESULT, DATA_MARSHALLER_INVALID_ARG)); @@ -201,7 +199,7 @@ } else { - memcpy(temp, STRING_c_str(payload), resultSize); + (void)memcpy(temp, STRING_c_str(payload), resultSize); *destination = temp; *destinationSize = resultSize; result = DATA_MARSHALLER_OK;