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/main.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ncpd/main.cc') 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) -- cgit v1.2.3