diff options
Diffstat (limited to 'missing')
-rw-r--r-- | missing/pcap_dump_ftell.c | 6 |
1 files changed, 5 insertions, 1 deletions
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)); } |