summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPixel <Pixel>2001-12-04 00:02:52 +0000
committerPixel <Pixel>2001-12-04 00:02:52 +0000
commitc0fc6d58ffd11919ad9ba845c13cb00fd7fadff2 (patch)
tree115db0d207ae75a6ac1e4e504ae59d5975bc1f47 /lib
parent4c92126b8eb52a43ccef28be0155374f2e6f7490 (diff)
Small changes
Diffstat (limited to 'lib')
-rw-r--r--lib/CopyJob.cc2
-rw-r--r--lib/Socket.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/CopyJob.cc b/lib/CopyJob.cc
index 8524b17..864706b 100644
--- a/lib/CopyJob.cc
+++ b/lib/CopyJob.cc
@@ -2,7 +2,7 @@
#include "General.h"
#include "config.h"
-CopyJob::CopyJob(Handle * as, Handle * ad, ssize_t asiz, bool ads, int az) : s(as), d(ad), ds(ads), siz(asiz), cursiz(0), r(0) {
+CopyJob::CopyJob(Handle * as, Handle * ad, ssize_t asiz, bool ads) : s(as), d(ad), ds(ads), siz(asiz), cursiz(0), r(0) {
s->SetNonBlock();
d->SetNonBlock();
WaitFor(s, W4_READING);
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;