From 8cd68a0fa45bd14a61aac2fc3546ac64a62e491f Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 22 Dec 2002 02:36:48 +0000 Subject: From Yoann Vandoorselaere : 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. --- pcap-nit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pcap-nit.c') diff --git a/pcap-nit.c b/pcap-nit.c index 5029bd75..f0bc8f47 100644 --- a/pcap-nit.c +++ b/pcap-nit.c @@ -20,7 +20,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/pcap-nit.c,v 1.43 2002-12-19 09:05:47 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-nit.c,v 1.44 2002-12-22 02:36:49 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -202,7 +202,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) { int fd; struct sockaddr_nit snit; -- cgit v1.2.3