diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-01-03 08:56:13 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-01-03 08:56:13 +0000 |
commit | f5257ef4a8f2b9e2edb944a497e37f78a22fea44 (patch) | |
tree | 37e44509756ab5a961897aa9de7b53d07bad1b21 /lib/server/Socket.cpp | |
parent | 3d7966138559f727a03a4b7c901508654125b7cf (diff) |
Change use of int to identify a socket type to the proper enum.
Diffstat (limited to 'lib/server/Socket.cpp')
-rw-r--r-- | lib/server/Socket.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/server/Socket.cpp b/lib/server/Socket.cpp index 72c126a8..4a83bdb0 100644 --- a/lib/server/Socket.cpp +++ b/lib/server/Socket.cpp @@ -32,13 +32,15 @@ // -------------------------------------------------------------------------- // // Function -// Name: Socket::NameLookupToSockAddr(SocketAllAddr &, int, char *, int) +// Name: Socket::NameLookupToSockAddr(SocketAllAddr &, int, +// char *, int) // Purpose: Sets up a sockaddr structure given a name and type // Created: 2003/07/31 // // -------------------------------------------------------------------------- void Socket::NameLookupToSockAddr(SocketAllAddr &addr, int &sockDomain, - int Type, const std::string& rName, int Port, int &rSockAddrLenOut) + enum Type Type, const std::string& rName, int Port, + int &rSockAddrLenOut) { int sockAddrLen = 0; |