diff --git a/mswin32/winfix.cc b/mswin32/winfix.cc index 966170fce..a57f2b7ad 100644 --- a/mswin32/winfix.cc +++ b/mswin32/winfix.cc @@ -216,7 +216,7 @@ void win_init() __try #endif { - char *pcap_ver = NULL; + const char *pcap_ver = NULL; o.have_pcap = true; if(o.debugging > 2) printf("Trying to initialize Windows pcap engine\n"); @@ -235,7 +235,7 @@ void win_init() init_npcap_dll_path(); - pcap_ver = PacketGetLibraryVersion(); + pcap_ver = PacketGetVersion(); if (o.debugging) printf("Packet.dll present, library version %s\n", pcap_ver); diff --git a/nping/winfix.cc b/nping/winfix.cc index eacfde02a..e5db00efe 100644 --- a/nping/winfix.cc +++ b/nping/winfix.cc @@ -214,7 +214,7 @@ void win_init() __try #endif { - char *pcap_ver = NULL; + const char *pcap_ver = NULL; if(o.getDebugging() >= DBG_2) printf("Trying to initialize Windows pcap engine\n"); @@ -232,7 +232,7 @@ void win_init() init_npcap_dll_path(); - pcap_ver = PacketGetLibraryVersion(); + pcap_ver = PacketGetVersion(); if (o.getDebugging() >= DBG_1) printf("Packet.dll present, library version %s\n", pcap_ver);