Add missing "const" keywords to match declarations in "pcap.h".
This commit is contained in:
parent
5c69d23f28
commit
27048c613e
|
@ -21,7 +21,7 @@
|
|||
*/
|
||||
#ifndef lint
|
||||
static const char rcsid[] _U_ =
|
||||
"@(#) $Header: /cvsroot/src/dist/libpcap/Attic/gencode.c,v 1.2 2006/02/27 15:53:24 drochner Exp $ (LBL)";
|
||||
"@(#) $Header: /cvsroot/src/dist/libpcap/Attic/gencode.c,v 1.3 2006/04/26 09:24:33 tron Exp $ (LBL)";
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
|
@ -348,7 +348,7 @@ int no_optimize;
|
|||
|
||||
int
|
||||
pcap_compile(pcap_t *p, struct bpf_program *program,
|
||||
char *buf, int optimize, bpf_u_int32 mask)
|
||||
const char *buf, int optimize, bpf_u_int32 mask)
|
||||
{
|
||||
extern int n_errors;
|
||||
int len;
|
||||
|
@ -403,7 +403,7 @@ pcap_compile(pcap_t *p, struct bpf_program *program,
|
|||
int
|
||||
pcap_compile_nopcap(int snaplen_arg, int linktype_arg,
|
||||
struct bpf_program *program,
|
||||
char *buf, int optimize, bpf_u_int32 mask)
|
||||
const char *buf, int optimize, bpf_u_int32 mask)
|
||||
{
|
||||
pcap_t *p;
|
||||
int ret;
|
||||
|
|
Loading…
Reference in New Issue