Cody style: Replace init with initialize.
diff --git a/ndn-cpp/transport/tcp-transport.cpp b/ndn-cpp/transport/tcp-transport.cpp
index 757823d..7c55d04 100644
--- a/ndn-cpp/transport/tcp-transport.cpp
+++ b/ndn-cpp/transport/tcp-transport.cpp
@@ -27,7 +27,7 @@
// TODO: This belongs in the socket listener.
const unsigned int initialLength = 1000;
// Automatically cast elementReader_ to (struct ndn_ElementListener *)
- ndn_BinaryXmlElementReader_init
+ ndn_BinaryXmlElementReader_initialize
(&elementReader_, &elementListener, (unsigned char *)malloc(initialLength), initialLength, ndn_realloc);
isConnected_ = true;
diff --git a/ndn-cpp/transport/tcp-transport.hpp b/ndn-cpp/transport/tcp-transport.hpp
index fa3bd47..b9c12bb 100644
--- a/ndn-cpp/transport/tcp-transport.hpp
+++ b/ndn-cpp/transport/tcp-transport.hpp
@@ -52,7 +52,7 @@
TcpTransport()
: elementListener_(0), isConnected_(false)
{
- ndn_TcpTransport_init(&transport_);
+ ndn_TcpTransport_initialize(&transport_);
elementReader_.partialData.array = 0;
}
diff --git a/ndn-cpp/transport/udp-transport.cpp b/ndn-cpp/transport/udp-transport.cpp
index 4097b90..e877a1f 100644
--- a/ndn-cpp/transport/udp-transport.cpp
+++ b/ndn-cpp/transport/udp-transport.cpp
@@ -27,7 +27,7 @@
// TODO: This belongs in the socket listener.
const unsigned int initialLength = 1000;
// Automatically cast elementReader_ to (struct ndn_ElementListener *)
- ndn_BinaryXmlElementReader_init
+ ndn_BinaryXmlElementReader_initialize
(&elementReader_, &elementListener, (unsigned char *)malloc(initialLength), initialLength, ndn_realloc);
isConnected_ = true;
diff --git a/ndn-cpp/transport/udp-transport.hpp b/ndn-cpp/transport/udp-transport.hpp
index 80699d2..3df6f93 100644
--- a/ndn-cpp/transport/udp-transport.hpp
+++ b/ndn-cpp/transport/udp-transport.hpp
@@ -52,7 +52,7 @@
UdpTransport()
: elementListener_(0), isConnected_(false)
{
- ndn_UdpTransport_init(&transport_);
+ ndn_UdpTransport_initialize(&transport_);
elementReader_.partialData.array = 0;
}