From cd992b995beeffc4638194ce3df25c5574139be3 Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 29 Aug 2022 16:12:38 +0000 Subject: [PATCH] Fix incorrect Packet.dll function name --- mswin32/winfix.cc | 4 ++-- nping/winfix.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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);