Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: constbuffer.c
- Revision:
- 19:2e0811512ceb
- Parent:
- 11:77df6d7e65ae
- Child:
- 48:81866008bba4
diff -r 6d8a413a4d9a -r 2e0811512ceb constbuffer.c --- a/constbuffer.c Fri Jan 13 18:41:15 2017 -0800 +++ b/constbuffer.c Sat Jan 28 09:35:22 2017 -0800 @@ -5,11 +5,8 @@ // PUT NO INCLUDES BEFORE HERE // #include <stdlib.h> -#ifdef _CRTDBG_MAP_ALLOC -#include <crtdbg.h> -#endif +#include <stddef.h> #include "azure_c_shared_utility/gballoc.h" - #include "azure_c_shared_utility/constbuffer.h" #include "azure_c_shared_utility/xlogging.h" #include "azure_c_shared_utility/refcount.h" @@ -59,7 +56,7 @@ /*Codes_SRS_CONSTBUFFER_02_004: [Otherwise CONSTBUFFER_Create shall return a non-NULL handle.]*/ /*Codes_SRS_CONSTBUFFER_02_007: [Otherwise, CONSTBUFFER_CreateFromBuffer shall copy the content of buffer.]*/ /*Codes_SRS_CONSTBUFFER_02_009: [Otherwise, CONSTBUFFER_CreateFromBuffer shall return a non-NULL handle.]*/ - memcpy(temp, source, size); + (void)memcpy(temp, source, size); result->alias.buffer = temp; } }