From 9e5f41ed6ebe64a789916794626485460078c420 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Sat, 19 Jan 2019 01:29:33 +0100 Subject: - Code style fix - Improved vpp binary api interface - Correction in object pool destructor - Fix error in Memif Connector Change-Id: Id1dd9219fc1ac0b3717ae019ebff17373bebc635 Signed-off-by: Mauro Sardara --- utils/src/hiperf.cc | 4 ++-- utils/src/ping_client.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'utils') diff --git a/utils/src/hiperf.cc b/utils/src/hiperf.cc index d8953b36a..221a8746b 100755 --- a/utils/src/hiperf.cc +++ b/utils/src/hiperf.cc @@ -229,7 +229,7 @@ class HIperfClient { } if (consumer_socket_->setSocketOption(OtherOptions::VIRTUAL_DOWNLOAD, - false) == SOCKET_OPTION_NOT_SET) { + configuration_.virtual_download) == SOCKET_OPTION_NOT_SET) { return ERROR_SETUP; } @@ -376,7 +376,7 @@ class HIperfServer { total = producer_socket_->produce( name, reinterpret_cast(content.data()), content.size(), - !configuration_.multiphase_produce_); + !configuration_.multiphase_produce_, suffix); std::cout << "Written " << total << "pieces of data in output buffer" << std::endl; diff --git a/utils/src/ping_client.cc b/utils/src/ping_client.cc index 178bd8bac..c3bfa4086 100755 --- a/utils/src/ping_client.cc +++ b/utils/src/ping_client.cc @@ -403,7 +403,7 @@ int main(int argc, char *argv[]) { } } - Client *ping = new Client(c); + auto ping = std::make_unique(c); auto t0 = std::chrono::steady_clock::now(); ping->ping(); -- cgit 1.2.3-korg