]> The Tcpdump Group git mirrors - libpcap/blobdiff - bpf_image.c
Have routines to set various internal debugging flags.
[libpcap] / bpf_image.c
index 3e9a23f51b4cd871e873085f18f8307372989274..01ec536dfd622f38fe36bde9853cb719c4199d43 100644 (file)
@@ -23,9 +23,9 @@
 #include "config.h"
 #endif
 
-#ifdef WIN32
+#ifdef _WIN32
 #include <pcap-stdinc.h>
-#else /* WIN32 */
+#else /* _WIN32 */
 #if HAVE_INTTYPES_H
 #include <inttypes.h>
 #elif HAVE_STDINT_H
@@ -35,7 +35,7 @@
 #include <sys/bitypes.h>
 #endif
 #include <sys/types.h>
-#endif /* WIN32 */
+#endif /* _WIN32 */
 
 #include <stdio.h>
 #include <string.h>
@@ -306,13 +306,13 @@ bpf_image(p, n)
                fmt = "";
                break;
        }
-       (void)snprintf(operand, sizeof operand, fmt, v);
+       (void)pcap_snprintf(operand, sizeof operand, fmt, v);
        if (BPF_CLASS(p->code) == BPF_JMP && BPF_OP(p->code) != BPF_JA) {
-               (void)snprintf(image, sizeof image,
+               (void)pcap_snprintf(image, sizeof image,
                              "(%03d) %-8s %-16s jt %d\tjf %d",
                              n, op, operand, n + 1 + p->jt, n + 1 + p->jf);
        } else {
-               (void)snprintf(image, sizeof image,
+               (void)pcap_snprintf(image, sizeof image,
                              "(%03d) %-8s %s",
                              n, op, operand);
        }