Microsoft Azure IoTHub client libraries
Dependents: sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp f767zi_mqtt ... more
This library implements the Microsoft Azure IoTHub client library. The code is replicated from https://github.com/Azure/azure-iot-sdks
Diff: iothub_client.c
- Revision:
- 47:aaa262b5f898
- Parent:
- 45:54c11b1b1407
- Child:
- 52:1cc3c6d07cad
diff -r 6a69294b6119 -r aaa262b5f898 iothub_client.c --- a/iothub_client.c Mon Jul 18 16:45:01 2016 -0700 +++ b/iothub_client.c Fri Jul 29 15:53:13 2016 -0700 @@ -184,7 +184,7 @@ else { /* Codes_SRS_IOTHUBCLIENT_12_004: [IoTHubClient_CreateFromConnectionString shall allocate a new IoTHubClient instance.] */ - result = malloc(sizeof(IOTHUB_CLIENT_INSTANCE)); + result = (IOTHUB_CLIENT_INSTANCE *) malloc(sizeof(IOTHUB_CLIENT_INSTANCE)); /* Codes_SRS_IOTHUBCLIENT_12_011: [If the allocation failed, IoTHubClient_CreateFromConnectionString returns NULL] */ if (result == NULL)