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

Revision:
22:422d94bd3c18
Parent:
21:6d3dea1abd9c
Child:
26:7c0e6f86d034
--- a/codefirst.c	Tue Jan 24 15:24:19 2017 -0800
+++ b/codefirst.c	Sat Jan 28 09:35:06 2017 -0800
@@ -883,8 +883,7 @@
     DEVICE_HEADER_DATA* deviceHeader;
 
     /* Codes_SRS_CODEFIRST_99_080:[If CodeFirst_CreateDevice is invoked with a NULL model, it shall return NULL.]*/
-    if (
-        (model == NULL))
+    if (model == NULL)
     {
         result = NULL;
         LogError(" %s ", ENUM_TO_STRING(CODEFIRST_RESULT, CODEFIRST_INVALID_ARG));
@@ -989,7 +988,7 @@
                 Schema_DestroyIfUnused(g_Devices[i]->ModelHandle);
 
                 DestroyDevice(g_Devices[i]);
-                memcpy(&g_Devices[i], &g_Devices[i + 1], (g_DeviceCount - i - 1) * sizeof(DEVICE_HEADER_DATA*));
+                (void)memcpy(&g_Devices[i], &g_Devices[i + 1], (g_DeviceCount - i - 1) * sizeof(DEVICE_HEADER_DATA*));
                 g_DeviceCount--;
                 break;
             }
@@ -1611,7 +1610,7 @@
             if (Device_IngestDesiredProperties(device, deviceHeader->DeviceHandle, desiredProperties) != DEVICE_OK)
             {
                 LogError("failure in Device_IngestDesiredProperties");
-                result = result = CODEFIRST_ERROR;
+                result = CODEFIRST_ERROR;
             }
             else
             {