Azure IoT common library

Fork of azure_c_shared_utility by Azure IoT

Revision:
21:b92006c5b9ff
Parent:
19:2e0811512ceb
Child:
25:8507bf644fdf
--- a/gballoc.c	Fri Feb 10 17:01:36 2017 -0800
+++ b/gballoc.c	Fri Feb 24 14:01:41 2017 -0800
@@ -5,6 +5,7 @@
 #include <stdint.h>
 #include <stddef.h>
 #include "azure_c_shared_utility/lock.h"
+#include "azure_c_shared_utility/optimize_size.h"
 #include "azure_c_shared_utility/xlogging.h"
 
 #ifndef SIZE_MAX
@@ -38,13 +39,13 @@
     if (gballocState != GBALLOC_STATE_NOT_INIT)
     {
         /* Codes_SRS_GBALLOC_01_025: [Init after Init shall fail and return a non-zero value.] */
-        result = __LINE__;
+        result = __FAILURE__;
     }
     /* Codes_SRS_GBALLOC_01_026: [gballoc_Init shall create a lock handle that will be used to make the other gballoc APIs thread-safe.] */
     else if ((gballocThreadSafeLock = Lock_Init()) == NULL)
     {
         /* Codes_SRS_GBALLOC_01_027: [If the Lock creation fails, gballoc_init shall return a non-zero value.]*/
-        result = __LINE__;
+        result = __FAILURE__;
     }
     else
     {