aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-12-29 21:20:42 +0000
committerGuy Harris <guy@alum.mit.edu>2004-12-29 21:20:42 +0000
commit4faa0e365db34b9d0636ccb7431830e4d3a788fa (patch)
tree74a4b261364ec5a2db1c7308f27811b00d258473 /capture_sync.c
parent13fd96b13dad62fccc98e29f826dba34dc2e142a (diff)
downloadwireshark-4faa0e365db34b9d0636ccb7431830e4d3a788fa.tar.gz
wireshark-4faa0e365db34b9d0636ccb7431830e4d3a788fa.tar.bz2
wireshark-4faa0e365db34b9d0636ccb7431830e4d3a788fa.zip
Fix it to compile on systems without "pcap_datalink_val_to_name()" (or
with "pcap_datalink_val_to_name()" but without a declaration of it in "pcap.h" *cough* Software Update *cough*). svn path=/trunk/; revision=12858
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_sync.c b/capture_sync.c
index c37555ff03..c07555df3c 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -272,7 +272,7 @@ sync_pipe_do_capture(capture_options *capture_opts, gboolean is_tempfile) {
sprintf(ssnap,"%s",pcap_datalink_val_to_name(capture_opts->linktype));
#else
/* XXX - just treat it as a number */
- sprintf(ssnap,"%d",capture_opts.linktype);
+ sprintf(ssnap,"%d",capture_opts->linktype);
#endif
argv = sync_pipe_add_arg(argv, &argc, ssnap);
}