Wireshark mailing list archives

Re: passing argument 4 of 'pcap_compile_nopcap' discards qualifiers from pointer target typ


From: Sake Blok <sake () euronet nl>
Date: Sun, 3 Oct 2010 21:29:07 +0200

On 3 okt 2010, at 20:02, Guy Harris wrote:
On Oct 3, 2010, at 5:16 AM, Sake Blok wrote:

Or can I just use a "(char *)" cast? That however would still defeat the purpose of the "const" declaration in the 
first place would it not?

Yes, but, in this particular case, you can, as indicated, trust pcap_compile()/pcap_compile_nopcap() not to try to 
modify the string.  You should probably put a comment in about that.

Done in SVN 34353

Sake

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: