summaryrefslogtreecommitdiff
path: root/gr-fec
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-01-09 12:34:08 -0800
committerMartin Braun <martin.braun@ettus.com>2020-01-10 19:21:38 -0800
commite0598e54b7202dfc0f37b402a2997e650c52b316 (patch)
tree3de3104b057a0173881ec00333180bd1427e9214 /gr-fec
parent4fd06de424850a0b70f6e8e959edcda9fe01f060 (diff)
Fix all formatting issues
This fixes every leftover file in the GNU Radio source tree to match our clang-format definition.
Diffstat (limited to 'gr-fec')
-rw-r--r--gr-fec/lib/async_decoder_impl.cc3
-rw-r--r--gr-fec/lib/decoder_impl.cc4
2 files changed, 4 insertions, 3 deletions
diff --git a/gr-fec/lib/async_decoder_impl.cc b/gr-fec/lib/async_decoder_impl.cc
index d417da3129..e7a668c832 100644
--- a/gr-fec/lib/async_decoder_impl.cc
+++ b/gr-fec/lib/async_decoder_impl.cc
@@ -116,7 +116,8 @@ void async_decoder_impl::decode_unpacked(pmt::pmt_t msg)
size_t nbits_in = pmt::length(bits);
size_t nbits_out = 0;
size_t nblocks = 1;
- bool variable_frame_size = d_decoder->set_frame_size(nbits_in * d_decoder->rate() - diff);
+ bool variable_frame_size =
+ d_decoder->set_frame_size(nbits_in * d_decoder->rate() - diff);
// Check here if the frame size is larger than what we've
// allocated for in the constructor.
diff --git a/gr-fec/lib/decoder_impl.cc b/gr-fec/lib/decoder_impl.cc
index f4ad7a9846..f1764143eb 100644
--- a/gr-fec/lib/decoder_impl.cc
+++ b/gr-fec/lib/decoder_impl.cc
@@ -106,8 +106,8 @@ int decoder_impl::general_work(int noutput_items,
pmt::intern(alias()));
}
- int consumed = std::lround(
- items / relative_rate() * (output_multiple() - d_decoder->get_history()));
+ int consumed = std::lround(items / relative_rate() *
+ (output_multiple() - d_decoder->get_history()));
int returned = items * (output_multiple() - d_decoder->get_history());
consume_each(consumed);