diff options
author | 2018-06-03 10:29:28 +0000 | |
---|---|---|
committer | 2018-06-03 10:29:28 +0000 | |
commit | aa4ed2b96525bff14c4a131f5bb2af37b9afa198 (patch) | |
tree | 866dbeef9ed989cda4cdbe55f66d71f12a1834c0 /lib/libpcap/gencode.c | |
parent | some words about the lang/php module (diff) | |
download | wireguard-openbsd-aa4ed2b96525bff14c4a131f5bb2af37b9afa198.tar.xz wireguard-openbsd-aa4ed2b96525bff14c4a131f5bb2af37b9afa198.zip |
Change some libpcap functions which use pointers as arguments and
returns to const pointers:
- the prefix argument to pcap_perror();
- the return value of pcap_strerror();
- the filter expression argument to pcap_compile() and pcap_compile_nopcap();
- the BPF filter program argument to bpf_image().
Matches changes made earlier in tcpdump.org's version of libpcap.
From Guy Harris, ok tb@, been through a bulk ports build.
Diffstat (limited to 'lib/libpcap/gencode.c')
-rw-r--r-- | lib/libpcap/gencode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c index 23057fdf410..640e4a4d30c 100644 --- a/lib/libpcap/gencode.c +++ b/lib/libpcap/gencode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gencode.c,v 1.48 2018/02/06 02:55:48 dlg Exp $ */ +/* $OpenBSD: gencode.c,v 1.49 2018/06/03 10:29:28 sthen Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998 @@ -275,7 +275,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; @@ -322,7 +322,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) { extern int n_errors; int len; |