diff --git a/src/Fakeroute.cpp b/src/Fakeroute.cpp index 1dfca2c..650460e 100644 --- a/src/Fakeroute.cpp +++ b/src/Fakeroute.cpp @@ -43,7 +43,7 @@ void printUsage(char*); static void daemonize(); int main(int argc, char** argv) { - char* fileName = "route.conf"; + char* fileName = (char*)"route.conf"; int op; if (getuid()) { diff --git a/src/FakeroutePacket.h b/src/FakeroutePacket.h index cb27b47..7f2bf6a 100644 --- a/src/FakeroutePacket.h +++ b/src/FakeroutePacket.h @@ -55,6 +55,7 @@ class FakeroutePacket { public: FakeroutePacket(u_int16_t receivedSourcePort, u_int16_t receivedDestinationPort, char* spoofedSourceAddress, char* spoofedDestinationAddress); + virtual ~FakeroutePacket(); virtual void sendOn(int fd); }; diff --git a/src/TracerouteListener.cpp b/src/TracerouteListener.cpp index f473ccd..a84e313 100644 --- a/src/TracerouteListener.cpp +++ b/src/TracerouteListener.cpp @@ -52,7 +52,7 @@ void TracerouteListener::listen(class TracerouteEvents &tracerouteEvents) { for (i=0;i