]> The Tcpdump Group git mirrors - libpcap/commitdiff
Make packet_version_string const to match PacketGetVersion return type LPCSTR 949/head
authorDaniel Miller <[email protected]>
Thu, 2 Jul 2020 23:32:18 +0000 (18:32 -0500)
committerDaniel Miller <[email protected]>
Thu, 2 Jul 2020 23:32:18 +0000 (18:32 -0500)
pcap-npf.c

index cdc0a715fe2c39df084070e8958882e8d051241c..2c7fd9f5f0589fa81bbed2fd0fb0eaeba535b66c 100644 (file)
@@ -2125,7 +2125,7 @@ pcap_lib_version(void)
                /*
                 * Generate the version string.
                 */
-               char *packet_version_string = PacketGetVersion();
+               const char *packet_version_string = PacketGetVersion();
 
                if (strcmp(WINPCAP_VER_STRING, packet_version_string) == 0) {
                        /*