1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Correct bad fix for silencing compiler warning (overloaded functions)

This commit is contained in:
vincent
2016-08-02 13:47:45 +00:00
parent a2b5a1a5f9
commit 3bbd85b38d

View File

@@ -132,15 +132,15 @@
class NetworkLayerElement : public PacketElement { class NetworkLayerElement : public PacketElement {
public: public:
virtual u16 getAddressLength(){ virtual u16 getAddressLength() const{
return 0; return 0;
} }
virtual u8 *getSourceAddress(){ virtual const u8 *getSourceAddress() const{
return NULL; return NULL;
} }
virtual u8 *getDestinationAddress(){ virtual const u8 *getDestinationAddress() const{
return NULL; return NULL;
} }
@@ -148,7 +148,7 @@ class NetworkLayerElement : public PacketElement {
return 0; return 0;
} }
virtual u8 getNextHeader(){ virtual u8 getNextHeader() const{
return 0; return 0;
} }
}; };