Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: crt_abstractions.c
- Revision:
- 21:b92006c5b9ff
- Parent:
- 19:2e0811512ceb
- Child:
- 27:8656a313842b
--- a/crt_abstractions.c Fri Feb 10 17:01:36 2017 -0800 +++ b/crt_abstractions.c Fri Feb 24 14:01:41 2017 -0800 @@ -11,6 +11,7 @@ #include <math.h> #include <errno.h> #include "azure_c_shared_utility/gballoc.h" +#include "azure_c_shared_utility/optimize_size.h" #include "azure_c_shared_utility/crt_abstractions.h" @@ -724,7 +725,7 @@ (destinationSize < 2) /*because the smallest number is '0\0' which requires 2 characters*/ ) { - result = __LINE__; + result = __FAILURE__; } else { @@ -753,7 +754,7 @@ else { /*Codes_SRS_CRT_ABSTRACTIONS_02_002: [If the conversion fails for any reason (for example, insufficient buffer space), a non-zero return value shall be supplied and unsignedIntToString shall fail.] */ - result = __LINE__; + result = __FAILURE__; } } return result; @@ -775,7 +776,7 @@ (destinationSize < 2) /*because the smallest number is '0\0' which requires 2 characters*/ ) { - result = __LINE__; + result = __FAILURE__; } else { @@ -804,7 +805,7 @@ else { /*Codes_SRS_CRT_ABSTRACTIONS_02_002: [If the conversion fails for any reason (for example, insufficient buffer space), a non-zero return value shall be supplied and unsignedIntToString shall fail.] */ - result = __LINE__; + result = __FAILURE__; } } return result;