From 597b93798a804cde1783d6d2ab53b348d57c44cd Mon Sep 17 00:00:00 2001 From: Tom Rondeau <tom@trondeau.com> Date: Mon, 7 Jul 2014 12:18:00 -0400 Subject: Removing trailing/extra whitespaces before release. We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace). --- gr-blocks/lib/message_sink_impl.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gr-blocks/lib/message_sink_impl.cc') diff --git a/gr-blocks/lib/message_sink_impl.cc b/gr-blocks/lib/message_sink_impl.cc index 4dfcc6396b..3dc4102c48 100644 --- a/gr-blocks/lib/message_sink_impl.cc +++ b/gr-blocks/lib/message_sink_impl.cc @@ -93,7 +93,7 @@ namespace gr { } } assert(packet_length != 0); - + // FIXME run this multiple times if input_items >= N * packet_length if (noutput_items >= packet_length ) { // If the message queue is full we drop the packet. @@ -110,7 +110,7 @@ namespace gr { } else { return 0; } - } else { + } else { // If the queue if full we drop all the data we got. if (!d_msgq->full_p()) { // build a message to hold whatever we've got @@ -119,7 +119,7 @@ namespace gr { noutput_items, // arg2 for other end (redundant) noutput_items * d_itemsize); // len of msg memcpy(msg->msg(), in, noutput_items * d_itemsize); - + d_msgq->handle(msg); // send it } @@ -129,4 +129,4 @@ namespace gr { } /* namespace blocks */ } /* namespace gr */ - + -- cgit v1.2.3