A small memory footprint AMQP implimentation
Dependents: iothub_client_sample_amqp remote_monitoring simplesample_amqp
Diff: amqpvalue_to_string.c
- Revision:
- 19:000ab4e6a2c1
- Parent:
- 17:923575db8b2d
- Child:
- 21:f9c433d8e6ca
diff -r a922a4a30a82 -r 000ab4e6a2c1 amqpvalue_to_string.c --- a/amqpvalue_to_string.c Fri Feb 10 17:00:55 2017 -0800 +++ b/amqpvalue_to_string.c Fri Feb 24 14:00:58 2017 -0800 @@ -6,6 +6,7 @@ #include <stddef.h> #include <string.h> #include <stdio.h> +#include "azure_c_shared_utility/optimize_size.h" #include "azure_uamqp_c/amqpvalue_to_string.h" #include "azure_uamqp_c/amqpvalue.h" #include "azure_uamqp_c/amqpalloc.h" @@ -22,7 +23,7 @@ if ((string == NULL) || (to_concat == NULL)) { - result = __LINE__; + result = __FAILURE__; } else { @@ -43,7 +44,7 @@ char* new_string = amqpalloc_realloc(*string, length); if (new_string == NULL) { - result = __LINE__; + result = __FAILURE__; } else {