$NetBSD: patch-aj,v 1.1 2004/09/08 12:47:39 wiz Exp $ --- ncp/link.cc.orig 1999-04-12 23:49:12.000000000 +0200 +++ ncp/link.cc @@ -30,7 +30,7 @@ #include "bufferstore.h" #include "bufferarray.h" -link::link(const char *fname, int baud, IOWatch &iow, bool _s5, bool _verbose) : +Link::Link(const char *fname, int baud, IOWatch &iow, bool _s5, bool _verbose) : s5(_s5) { p = new packet(fname, baud, iow, PACKET_LAYER_DIAGNOSTICS); @@ -43,16 +43,16 @@ link::link(const char *fname, int baud, failed = false; } -link::~link() { +Link::~Link() { delete p; } -void link::send(const bufferStore &buff) { +void Link::send(const bufferStore &buff) { if (buff.getLen() > 300) abort(); sendQueue.pushBuffer(buff); } -bufferArray link::poll() { +bufferArray Link::poll() { bufferArray ret; bufferStore buff; unsigned char type; @@ -145,10 +145,10 @@ bufferArray link::poll() { return ret; } -bool link::stuffToSend() { +bool Link::stuffToSend() { return (somethingToSend || !sendQueue.empty()); } -bool link::hasFailed() { +bool Link::hasFailed() { return failed; }