Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
19:2e0811512ceb
Parent:
18:6d8a413a4d9a
Child:
21:b92006c5b9ff
--- a/crt_abstractions.c	Fri Jan 13 18:41:15 2017 -0800
+++ b/crt_abstractions.c	Sat Jan 28 09:35:22 2017 -0800
@@ -4,17 +4,14 @@
 #define __STDC_WANT_LIB_EXT1__ 1
 
 #include <stdlib.h>
-#ifdef _CRTDBG_MAP_ALLOC
-#include <crtdbg.h>
-#endif
-#include "azure_c_shared_utility/gballoc.h"
-
-#include "azure_c_shared_utility/crt_abstractions.h"
-#include "errno.h"
 #include <stddef.h>
+#include <stdarg.h>
 #include <limits.h>
 #include <float.h>
 #include <math.h>
+#include <errno.h>
+#include "azure_c_shared_utility/gballoc.h"
+#include "azure_c_shared_utility/crt_abstractions.h"
 
 
 #if defined (WINCE) || defined (TIZENRT)
@@ -36,8 +33,6 @@
 #ifdef _MSC_VER
 #else
 
-#include <stdarg.h>
-
 /*Codes_SRS_CRT_ABSTRACTIONS_99_008: [strcat_s shall append the src to dst and terminates the resulting string with a null character.]*/
 int strcat_s(char* dst, size_t dstSizeInBytes, const char* src)
 {
@@ -202,7 +197,7 @@
         }
         else
         {
-            memcpy(dst, src, neededBuffer + 1);
+            (void)memcpy(dst, src, neededBuffer + 1);
             /*Codes_SRS_CRT_ABSTRACTIONS_99_011: [strcpy_s shall return Zero upon success]*/
             result = 0;
         }