X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3e9e2b62b8276a93d5291a81d3f45eba08548b29..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/missing/pcap_dump_ftell.c diff --git a/missing/pcap_dump_ftell.c b/missing/pcap_dump_ftell.c index b91fc125..ddc51667 100644 --- a/missing/pcap_dump_ftell.c +++ b/missing/pcap_dump_ftell.c @@ -38,5 +38,9 @@ long pcap_dump_ftell(pcap_dumper_t *p) { - return (ftell(pcap_dump_file(p))); + /* FIXME: Using pcap_dump_file(p) would be a better style. That would + * require to test if pcap_dump_file() is available, and to substitute it, + * if it is not. + */ + return (ftell((FILE *)p)); }