Skip to content

Commit

Permalink
adjust format
Browse files Browse the repository at this point in the history
  • Loading branch information
caiomcbr committed Apr 15, 2024
1 parent 63c3ec6 commit 9448acd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void EthernetConnection::write(RegisteredMemory dst, uint64_t dstOffset, Registe
validateTransport(dst, remoteTransport());
validateTransport(src, transport());

// Initalizing Variables
// Initializing Variables
char* srcPtr = reinterpret_cast<char*>(src.data()) + srcOffset/sizeof(char);
char* dstPtr = reinterpret_cast<char*>(dst.originalDataPtr()) + dstOffset/sizeof(char);
uint64_t sendSize = 0;
Expand All @@ -254,7 +254,7 @@ void EthernetConnection::updateAndSync(RegisteredMemory dst, uint64_t dstOffset,
// Validating Transport Protocol
validateTransport(dst, remoteTransport());

// Initalizing Variables
// Initializing Variables
uint64_t oldValue = *src;
uint64_t* dstPtr = reinterpret_cast<uint64_t*>(reinterpret_cast<char*>(dst.originalDataPtr()) + dstOffset);
uint64_t size = sizeof(uint64_t);
Expand Down
8 changes: 4 additions & 4 deletions src/include/connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ class EthernetConnection : public Connection {
volatile uint32_t* abortFlag_;
const uint64_t sendBufferSize_ = 256000000;
const uint64_t rcvBufferSize_ = 256000000;
char *sendBuffer_;
char *rcvBuffer_;
char* sendBuffer_;
char* rcvBuffer_;

public:
public:
EthernetConnection(Endpoint localEndpoint, Endpoint remoteEndpoint);

~EthernetConnection();
Expand All @@ -80,7 +80,7 @@ class EthernetConnection : public Connection {

void flush(int64_t timeoutUsec) override;

private:
private:
void rcvMessages();

void sendMessage();
Expand Down

0 comments on commit 9448acd

Please sign in to comment.