diff options
author | Marcus Müller <marcus.mueller@ettus.com> | 2018-03-30 13:17:10 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-03-30 20:46:04 +0200 |
commit | 9a6bf484394f5954483477856f6a6712331b9ee6 (patch) | |
tree | 91fd88420a8b373adb5ea2e76d002048cf78fa99 /gr-blocks/lib/random_pdu_impl.cc | |
parent | 50e0156324bec28d4e07b9598798b6267fb39155 (diff) |
blocks: avoid potential static initialization order fiasco
Diffstat (limited to 'gr-blocks/lib/random_pdu_impl.cc')
-rw-r--r-- | gr-blocks/lib/random_pdu_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/lib/random_pdu_impl.cc b/gr-blocks/lib/random_pdu_impl.cc index ea2d470d2b..9dfc761a2b 100644 --- a/gr-blocks/lib/random_pdu_impl.cc +++ b/gr-blocks/lib/random_pdu_impl.cc @@ -48,7 +48,7 @@ namespace gr { d_mask(byte_mask), d_length_modulo(length_modulo) { - message_port_register_out(pdu::s_pdu_port_id); + message_port_register_out(pdu::pdu_port_id()); message_port_register_in(pmt::mp("generate")); set_msg_handler(pmt::mp("generate"), boost::bind(&random_pdu_impl::generate_pdu, this, _1)); if(length_modulo < 1) @@ -80,7 +80,7 @@ namespace gr { pmt::pmt_t vecpmt(pmt::make_blob(&vec[0], len)); pmt::pmt_t pdu(pmt::cons(pmt::PMT_NIL, vecpmt)); - message_port_pub(pdu::s_pdu_port_id, pdu); + message_port_pub(pdu::pdu_port_id(), pdu); } } /* namespace blocks */ |