From c016a1ae2bc93a48074e4b8cafab70b9d2c9fc20 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 1 Aug 2011 14:36:15 +0300 Subject: [PATCH] Style update: remove alignment --- source/inet.h | 10 +++++----- source/socket.h | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/inet.h b/source/inet.h index f22d6a1..a65813b 100644 --- a/source/inet.h +++ b/source/inet.h @@ -22,17 +22,17 @@ private: typedef u_short in_port_t; #endif - in_addr_t addr; - in_port_t port; + in_addr_t addr; + in_port_t port; public: InetAddr(); InetAddr(const sockaddr_in &); InetAddr(in_addr_t, in_port_t); - Family get_family() const { return INET; } - in_addr_t get_addr() const { return ntohl(addr); } - in_port_t get_port() const { return ntohs(port); } + Family get_family() const { return INET; } + in_addr_t get_addr() const { return ntohl(addr); } + in_port_t get_port() const { return ntohs(port); } std::string str() const; virtual unsigned fill_sockaddr(sockaddr &) const; virtual InetAddr *copy() const { return new InetAddr(*this); } diff --git a/source/socket.h b/source/socket.h index 1c5efda..caea924 100644 --- a/source/socket.h +++ b/source/socket.h @@ -16,9 +16,9 @@ protected: #ifdef WIN32 IO::Handle event; #endif - bool connected; - SockAddr *local_addr; - SockAddr *peer_addr; + bool connected; + SockAddr *local_addr; + SockAddr *peer_addr; Socket(SocketHandle, const SockAddr &); Socket(Family, int, int); -- 2.43.0