From c0fc6d58ffd11919ad9ba845c13cb00fd7fadff2 Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 4 Dec 2001 00:02:52 +0000 Subject: Small changes --- lib/Socket.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Socket.cc') diff --git a/lib/Socket.cc b/lib/Socket.cc index 1d93bb5..62de4b6 100644 --- a/lib/Socket.cc +++ b/lib/Socket.cc @@ -61,7 +61,7 @@ void Socket::CloseRead(void) { \***********************************************/ -bool Socket::SetLocal(String vhost, int port) { +bool Socket::SetLocal(const String & vhost, int port) { struct hostent * localhostent; struct in_addr localhostaddr; struct sockaddr_in localsocketaddr; @@ -91,7 +91,7 @@ bool Socket::SetLocal(String vhost, int port) { } } -bool Socket::Connect(String host, int port) { +bool Socket::Connect(const String & host, int port) { struct hostent * remotehostent; struct sockaddr_in remotesocketaddr; -- cgit v1.2.3