aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc
diff options
context:
space:
mode:
authorAngelo Mantellini <manangel@cisco.com>2019-03-08 15:35:31 +0100
committerAngelo Mantellini <manangel@cisco.com>2019-03-08 15:46:13 +0100
commit83cb1b630a3b9da5ca92814de1bac4e7f0bdfb71 (patch)
tree767a67667da286cc414d9b7099fd5b524dce40e7 /libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc
parent6aaef596f68a514036d5212fc8697bdaf371e5af (diff)
[HICN-102] Remove warnings and compilation errors in hicn on windows
Change-Id: Ibb5d90fe35097a29fa6edccd3c7859d043888717 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc')
-rw-r--r--libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc b/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc
index 1c8060906..515f88c5b 100644
--- a/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc
+++ b/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc
@@ -78,8 +78,8 @@ std::unique_ptr<RouteToSelfCommand> createCommandRoute(
#ifndef _WIN32
strcpy(command->symbolic_or_connid, identifier);
#else
- strcpy_s(route_to_self->symbolic_or_connid,
- strlen(route_to_self->symbolic_or_connid), identifier);
+ strcpy_s(command->symbolic_or_connid,
+ strlen(command->symbolic_or_connid), identifier);
#endif
command->cost = 1;
command->len = (uint8_t)prefix_length;
@@ -99,8 +99,8 @@ std::unique_ptr<DeleteSelfConnectionCommand> createCommandDeleteConnection() {
#ifndef _WIN32
strcpy(command->symbolic_or_connid, identifier);
#else
- strcpy_s(route_to_self->symbolic_or_connid,
- strlen(route_to_self->symbolic_or_connid), identifier);
+ strcpy_s(command->symbolic_or_connid,
+ strlen(command->symbolic_or_connid), identifier);
#endif
return command;
@@ -122,7 +122,7 @@ void HicnForwarderInterface::connect(bool is_consumer) { connector_.connect(); }
void HicnForwarderInterface::registerRoute(Prefix &prefix) {
auto command =
- createCommandRoute(prefix.toSockaddr(), prefix.getPrefixLength())
+ createCommandRoute(prefix.toSockaddr(), (uint8_t)prefix.getPrefixLength())
.release();
send((uint8_t *)command, sizeof(RouteToSelfCommand),
[command]() { delete command; });