aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-util.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-02-24 01:11:27 +0000
committerGuy Harris <guy@alum.mit.edu>2004-02-24 01:11:27 +0000
commit64b2a29fc8993ca81d8acc91dbb4793805c8f48d (patch)
tree1672b9b9fe02bb80be3d18cee4593ced9b824b8d /pcap-util.c
parente0fae3ea781fee05bb11858451d8009d5e825d11 (diff)
Squelch a compiler warning.
svn path=/trunk/; revision=10211
Diffstat (limited to 'pcap-util.c')
-rw-r--r--pcap-util.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pcap-util.c b/pcap-util.c
index 4e6bdfba53..c79f008d99 100644
--- a/pcap-util.c
+++ b/pcap-util.c
@@ -1,7 +1,7 @@
/* pcap-util.c
* Utility routines for packet capture
*
- * $Id: pcap-util.c,v 1.23 2003/12/21 12:18:59 ulfl Exp $
+ * $Id: pcap-util.c,v 1.24 2004/02/24 01:11:27 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -342,7 +342,11 @@ free_pcap_linktype_list(GList *linktype_list)
/* Set the data link type on a pcap. */
const char *
-set_pcap_linktype(pcap_t *pch, char *devname, int dlt)
+set_pcap_linktype(pcap_t *pch, char *devname
+#ifdef HAVE_PCAP_SET_DATALINK
+ _U_
+#endif
+ , int dlt)
{
#ifdef HAVE_PCAP_SET_DATALINK
if (pcap_set_datalink(pch, dlt) == 0)