]> The Tcpdump Group git mirrors - libpcap/blobdiff - sf-pcap.c
Prefix routines declared in pcap-int.h with pcap_.
[libpcap] / sf-pcap.c
index 6f34dc76d8c16e4b810e5de2c461feb91e9afa81..8ac1c6adb8e99dbc6c0fba25f73b375c5279cd90 100644 (file)
--- a/sf-pcap.c
+++ b/sf-pcap.c
@@ -418,7 +418,7 @@ pcap_check_header(const uint8_t *magic, FILE *fp, u_int precision, char *errbuf,
                return (NULL);
        }
 
-       p->cleanup_op = sf_cleanup;
+       p->cleanup_op = pcap_sf_cleanup;
 
        return (p);
 }
@@ -864,7 +864,7 @@ pcap_dump_open(pcap_t *p, const char *fname)
                 * 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);
@@ -964,7 +964,7 @@ pcap_dump_open_append(pcap_t *p, const char *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);