A small memory footprint AMQP implimentation
Dependents: iothub_client_sample_amqp remote_monitoring simplesample_amqp
Diff: message_receiver.c
- Revision:
- 17:923575db8b2d
- Parent:
- 12:b30dacf113f2
- Child:
- 19:000ab4e6a2c1
--- a/message_receiver.c Fri Jan 13 18:40:42 2017 -0800 +++ b/message_receiver.c Tue Jan 24 15:23:52 2017 -0800 @@ -2,9 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <stdlib.h> -#ifdef _CRTDBG_MAP_ALLOC -#include <crtdbg.h> -#endif #include "azure_uamqp_c/message_receiver.h" #include "azure_uamqp_c/amqpalloc.h" #include "azure_uamqp_c/amqpvalue.h" @@ -172,7 +169,6 @@ } else { - message_receiver_instance->decoded_message; AMQPVALUE_DECODER_HANDLE amqpvalue_decoder = amqpvalue_decoder_create(decode_message_value_callback, message_receiver_instance); if (amqpvalue_decoder == NULL) { @@ -215,6 +211,9 @@ switch (new_link_state) { + default: + break; + case LINK_STATE_ATTACHED: if (message_receiver_instance->message_receiver_state == MESSAGE_RECEIVER_STATE_OPENING) {