Azure IoT common library

Fork of azure_c_shared_utility by Azure IoT

Revision:
21:b92006c5b9ff
Parent:
19:2e0811512ceb
Child:
30:ce3813c5a692
diff -r 95abdea56064 -r b92006c5b9ff singlylinkedlist.c
--- a/singlylinkedlist.c	Fri Feb 10 17:01:36 2017 -0800
+++ b/singlylinkedlist.c	Fri Feb 24 14:01:41 2017 -0800
@@ -4,6 +4,7 @@
 #include <stdlib.h>
 #include "azure_c_shared_utility/gballoc.h"
 #include "azure_c_shared_utility/singlylinkedlist.h"
+#include "azure_c_shared_utility/optimize_size.h"
 
 typedef struct LIST_ITEM_INSTANCE_TAG
 {
@@ -104,7 +105,7 @@
 	if ((list == NULL) ||
         (item == NULL))
     {
-        result = __LINE__;
+        result = __FAILURE__;
     }
     else
     {
@@ -136,7 +137,7 @@
 		if (current_item == NULL)
 		{
 			/* Codes_SRS_LIST_01_025: [If the item item_handle is not found in the list, then singlylinkedlist_remove shall fail and return a non-zero value.] */
-			result = __LINE__;
+			result = __FAILURE__;
 		}
 		else
 		{