From: Mikko Rasa Date: Mon, 1 Aug 2011 11:36:15 +0000 (+0300) Subject: Style update: remove alignment X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c016a1ae2bc93a48074e4b8cafab70b9d2c9fc20;p=libs%2Fnet.git Style update: remove alignment --- 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);