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
This commit is contained in:
Guy Harris 2004-12-29 21:20:42 +00:00
parent 13fd96b13d
commit 4faa0e365d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}