diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2015-12-31 23:10:23 -0800 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2016-04-09 20:23:05 -0700 |
commit | bcf56a10b026591a62cd734798fa968497534b8b (patch) | |
tree | 5a7b0301f2dbfcd2e1444630c2aaac48f3311772 /librabbitmq | |
parent | 46cb6c521541e34535e0fed3681cfbb13b0c8e57 (diff) | |
download | rabbitmq-c-bcf56a10b026591a62cd734798fa968497534b8b.tar.gz |
Lib: use for(;;) for infinite loop
Diffstat (limited to 'librabbitmq')
-rw-r--r-- | librabbitmq/amqp_socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/librabbitmq/amqp_socket.c b/librabbitmq/amqp_socket.c index e8df286..6e2932f 100644 --- a/librabbitmq/amqp_socket.c +++ b/librabbitmq/amqp_socket.c @@ -805,7 +805,7 @@ static int wait_frame_inner(amqp_connection_state_t state, return res; } - while (1) { + for (;;) { int res; while (amqp_data_in_buffer(state)) { @@ -951,7 +951,7 @@ int amqp_simple_wait_frame_on_channel(amqp_connection_state_t state, } } - while (1) { + for (;;) { res = wait_frame_inner(state, decoded_frame, NULL); if (AMQP_STATUS_OK != res) { |