diff --git a/src/connection.cc b/src/connection.cc index 71f940054..71c220a29 100644 --- a/src/connection.cc +++ b/src/connection.cc @@ -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(src.data()) + srcOffset/sizeof(char); char* dstPtr = reinterpret_cast(dst.originalDataPtr()) + dstOffset/sizeof(char); uint64_t sendSize = 0; @@ -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(reinterpret_cast(dst.originalDataPtr()) + dstOffset); uint64_t size = sizeof(uint64_t); diff --git a/src/include/connection.hpp b/src/include/connection.hpp index e57ecd348..43dfbd69e 100644 --- a/src/include/connection.hpp +++ b/src/include/connection.hpp @@ -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(); @@ -80,7 +80,7 @@ class EthernetConnection : public Connection { void flush(int64_t timeoutUsec) override; - private: + private: void rcvMessages(); void sendMessage();