diff options
author | Fritz Elfert <felfert@to.com> | 2001-02-04 04:23:06 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2001-02-04 04:23:06 +0000 |
commit | a7e4250b20fa5012942c4fe05ee0c7f701c5799f (patch) | |
tree | 087ef59c3c88713aa8c7b3150a2ae114c04a929e /ncpd/main.cc | |
parent | 1664530e8f0e1ac6e762a1c79629fcec86f68724 (diff) | |
download | plptools-a7e4250b20fa5012942c4fe05ee0c7f701c5799f.tar.gz plptools-a7e4250b20fa5012942c4fe05ee0c7f701c5799f.tar.bz2 plptools-a7e4250b20fa5012942c4fe05ee0c7f701c5799f.zip |
Cleaned up ppsocket.
More 64bit-related stuff.
Diffstat (limited to 'ncpd/main.cc')
-rw-r--r-- | ncpd/main.cc | 7 |
1 files changed, 4 insertions, 3 deletions
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 <stdio.h> -#include <string.h> +#include <string> #include <stream.h> #include <stdlib.h> #include <signal.h> +#include <errno.h> #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) |