aboutsummaryrefslogtreecommitdiff
path: root/pcap-snit.c
diff options
context:
space:
mode:
authorguy <guy>2002-12-22 02:36:48 +0000
committerguy <guy>2002-12-22 02:36:48 +0000
commit8cd68a0fa45bd14a61aac2fc3546ac64a62e491f (patch)
tree8e07fc418f79dbc7b19052f0d9d6d167b4486dd4 /pcap-snit.c
parenteca5a61ef131d28936f10d082da6b832856eb897 (diff)
From Yoann Vandoorselaere <yoann@prelude-ids.org>: make the "device"
argument to "pcap_open_live()" a "const" pointer. Constify some additional device name arguments, and update the man page to reflect some arguments that were already consts.
Diffstat (limited to 'pcap-snit.c')
-rw-r--r--pcap-snit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pcap-snit.c b/pcap-snit.c
index 2131ea03..774838db 100644
--- a/pcap-snit.c
+++ b/pcap-snit.c
@@ -25,7 +25,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-snit.c,v 1.59 2002-12-19 09:05:47 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-snit.c,v 1.60 2002-12-22 02:36:50 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -219,7 +219,8 @@ nit_setflags(int fd, int promisc, int to_ms, char *ebuf)
}
pcap_t *
-pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *ebuf)
+pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
+ char *ebuf)
{
struct strioctl si; /* struct for ioctl() */
struct ifreq ifr; /* interface request struct */