wireshark-dev October 2010 archive
Main Archive Page > Month Archives  > wireshark-dev archives
wireshark-dev: Re: [Wireshark-dev] passing argument 4 of 'pcap_c

Re: [Wireshark-dev] passing argument 4 of 'pcap_compile_nopcap' discards qualifiers from pointer target typ

From: Sake Blok <sake_at_nospam>
Date: Sun Oct 03 2010 - 19:29:07 GMT
To: Developer support list for Wireshark <wireshark-dev@wireshark.org>

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


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