return (NULL);
}
- p->cleanup_op = sf_cleanup;
+ p->cleanup_op = pcap_sf_cleanup;
return (p);
}
* required on Windows, as the file is a binary file
* and must be written in binary mode.
*/
- f = charset_fopen(fname, "wb");
+ f = pcap_charset_fopen(fname, "wb");
if (f == NULL) {
pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
errno, "%s", fname);
* even though it does nothing. It's required on Windows, as the
* file is a binary file and must be read in binary mode.
*/
- f = charset_fopen(fname, "ab+");
+ f = pcap_charset_fopen(fname, "ab+");
if (f == NULL) {
pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
errno, "%s", fname);