From e67cf5815be0879df4583b51426358e4c14b7606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 31 May 2008 12:04:09 +0000 Subject: [PATCH] * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25738 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/net/AddressUtilities.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/headers/private/net/AddressUtilities.h b/headers/private/net/AddressUtilities.h index 294702ad7a..78f452e3b9 100644 --- a/headers/private/net/AddressUtilities.h +++ b/headers/private/net/AddressUtilities.h @@ -1,20 +1,21 @@ /* - * Copyright 2007, Haiku, Inc. All Rights Reserved. + * Copyright 2007-2008, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * Hugo Santos, hugosantos@gmail.com */ -#ifndef ADDRESS_UTILITIES_H -#define ADDRESS_UTILITIES_H +#ifndef NET_ADDRESS_UTILITIES_H +#define NET_ADDRESS_UTILITIES_H + #include - #include #include + class SocketAddress { public: SocketAddress(net_address_module_info *module, sockaddr *address) @@ -160,8 +161,8 @@ public: { if (checkPort) return fModule->equal_addresses_and_ports(fAddress, address); - else - return fModule->equal_addresses(fAddress, address); + + return fModule->equal_addresses(fAddress, address); } bool EqualPorts(const sockaddr *second) const @@ -195,7 +196,8 @@ public: } const char *AsString(char *buffer, size_t bufferSize, - bool printPort = false) const { + bool printPort = false) const + { fModule->print_address_buffer(fAddress, buffer, bufferSize, printPort); return buffer; } @@ -217,4 +219,4 @@ private: sockaddr_storage fAddressStorage; }; -#endif +#endif // NET_ADDRESS_UTILITIES_H