summaryrefslogtreecommitdiff
path: root/lib/server/Socket.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2009-01-03 08:56:13 +0000
committerChris Wilson <chris+github@qwirx.com>2009-01-03 08:56:13 +0000
commitf5257ef4a8f2b9e2edb944a497e37f78a22fea44 (patch)
tree37e44509756ab5a961897aa9de7b53d07bad1b21 /lib/server/Socket.h
parent3d7966138559f727a03a4b7c901508654125b7cf (diff)
Change use of int to identify a socket type to the proper enum.
Diffstat (limited to 'lib/server/Socket.h')
-rw-r--r--lib/server/Socket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/server/Socket.h b/lib/server/Socket.h
index dcbac8c5..5034dbd8 100644
--- a/lib/server/Socket.h
+++ b/lib/server/Socket.h
@@ -39,14 +39,14 @@ typedef union {
// --------------------------------------------------------------------------
namespace Socket
{
- enum
+ enum Type
{
TypeINET = 1,
TypeUNIX = 2
};
void NameLookupToSockAddr(SocketAllAddr &addr, int &sockDomain,
- int Type, const std::string& rName, int Port,
+ enum Type type, const std::string& rName, int Port,
int &rSockAddrLenOut);
void LogIncomingConnection(const struct sockaddr *addr, socklen_t addrlen);
std::string IncomingConnectionLogMessage(const struct sockaddr *addr, socklen_t addrlen);