Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Hungarian notation string strError to string Error #390

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions remote-process/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ using namespace std;

bool sendAndDisplayCommand(asio::ip::tcp::socket &socket, CRequestMessage &requestMessage)
{
string strError;
string Error;

if (requestMessage.serialize(Socket(socket), true, strError) != CRequestMessage::success) {
if (requestMessage.serialize(Socket(socket), true, Error) != CRequestMessage::success) {

cerr << "Unable to send command to target: " << strError << endl;
cerr << "Unable to send command to target: " << Error << endl;
return false;
}

///// Get answer
CAnswerMessage answerMessage;
if (answerMessage.serialize(Socket(socket), false, strError) != CRequestMessage::success) {
if (answerMessage.serialize(Socket(socket), false, Error) != CRequestMessage::success) {

cerr << "Unable to received answer from target: " << strError << endl;
cerr << "Unable to received answer from target: " << Error << endl;
return false;
}

Expand Down