commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/05: blocks: minor cleanup for types and


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/05: blocks: minor cleanup for types and using alias_pmt directly in pdu_to_tagged_stream.
Date: Wed, 4 Mar 2015 15:29:26 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit 5fd3e3f85fbf797183e9d506aa43397ca91085cd
Author: Tom Rondeau <address@hidden>
Date:   Fri Feb 20 12:25:26 2015 -0500

    blocks: minor cleanup for types and using alias_pmt directly in 
pdu_to_tagged_stream.
---
 gr-blocks/lib/pdu_to_tagged_stream_impl.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gr-blocks/lib/pdu_to_tagged_stream_impl.cc 
b/gr-blocks/lib/pdu_to_tagged_stream_impl.cc
index d505e14..e0da2e5 100644
--- a/gr-blocks/lib/pdu_to_tagged_stream_impl.cc
+++ b/gr-blocks/lib/pdu_to_tagged_stream_impl.cc
@@ -90,7 +90,7 @@ namespace gr {
       // Copy vector output
       size_t nout = d_curr_len;
       size_t io(0);
-      const uint8_t* ptr = (uint8_t*) uniform_vector_elements(d_curr_vect, io);
+      const uint8_t* ptr = (const uint8_t*) 
uniform_vector_elements(d_curr_vect, io);
       memcpy(out, ptr, d_curr_len*d_itemsize);
 
       // Copy tags
@@ -99,7 +99,7 @@ namespace gr {
         for (size_t i = 0; i < pmt::length(klist); i++) {
           pmt::pmt_t k(pmt::nth(i, klist));
           pmt::pmt_t v(pmt::dict_ref(d_curr_meta, k, pmt::PMT_NIL));
-          add_item_tag(0, nitems_written(0), k, v, pmt::mp(alias()));
+          add_item_tag(0, nitems_written(0), k, v, alias_pmt());
         }
       }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]