From a7e4250b20fa5012942c4fe05ee0c7f701c5799f Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Sun, 4 Feb 2001 04:23:06 +0000 Subject: Cleaned up ppsocket. More 64bit-related stuff. --- ncpd/linkchan.cc | 2 +- ncpd/main.cc | 7 ++++--- ncpd/ncp.cc | 2 +- ncpd/packet.cc | 6 +++--- 4 files changed, 9 insertions(+), 8 deletions(-) (limited to 'ncpd') diff --git a/ncpd/linkchan.cc b/ncpd/linkchan.cc index f8e586f..21ec39f 100644 --- a/ncpd/linkchan.cc +++ b/ncpd/linkchan.cc @@ -23,7 +23,7 @@ // e-mail philip.proudman@btinternet.com #include -#include +#include #include "linkchan.h" #include "bufferstore.h" diff --git a/ncpd/main.cc b/ncpd/main.cc index 2392d09..76d0bb2 100644 --- a/ncpd/main.cc +++ b/ncpd/main.cc @@ -27,10 +27,11 @@ #endif #include -#include +#include #include #include #include +#include #include "ncp.h" #include "bufferstore.h" @@ -64,8 +65,8 @@ int_handler(int) void checkForNewSocketConnection(ppsocket & skt, int &numScp, socketChan ** scp, ncp * a, IOWatch & iow) { - char peer[201]; - ppsocket *next = skt.accept(peer, 200); + string peer; + ppsocket *next = skt.accept(&peer); if (next != NULL) { // New connect if (verbose) diff --git a/ncpd/ncp.cc b/ncpd/ncp.cc index 8af83d8..b3cf009 100644 --- a/ncpd/ncp.cc +++ b/ncpd/ncp.cc @@ -27,7 +27,7 @@ #endif #include -#include +#include #include #include "ncp.h" diff --git a/ncpd/packet.cc b/ncpd/packet.cc index ebefc0a..6d97ccc 100644 --- a/ncpd/packet.cc +++ b/ncpd/packet.cc @@ -32,9 +32,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include #include #include -- cgit v1.2.3