- g++ gave warning about "class eth_pktmover_c has virtual functions but

a non-virtual destructor" so I gave it a virtual destructor which is
  empty!
This commit is contained in:
Bryce Denney 2001-05-23 02:44:52 +00:00
parent 42bc8f4f2c
commit 7f5f5e24ce
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ typedef void (*eth_rx_handler_t)(void *arg, const void *buf, unsigned len);
class eth_pktmover_c : public logfunctions {
public:
virtual void sendpkt(void *buf, unsigned io_len) = 0;
virtual ~eth_pktmover_c (void) {}
protected:
eth_rx_handler_t rxh; // receive callback
void *rxarg;