Silence the remaining amd64 warnings for stuff that has WARNS set.
[dragonfly.git] / usr.sbin / pflogd / pflogd.c
index 8872c89..c799a4e 100644 (file)
@@ -397,7 +397,7 @@ dump_packet_nobuf(u_char *user, const struct pcap_pkthdr *h, const u_char *sp)
        if (fwrite(h, sizeof(*h), 1, f) != 1) {
                /* try to undo header to prevent corruption */
                off_t pos = ftello(f);
-               if (pos < sizeof(*h) ||
+               if ((size_t)pos < sizeof(*h) ||
                    ftruncate(fileno(f), pos - sizeof(*h))) {
                        logmsg(LOG_ERR, "Write failed, corrupted logfile!");
                        set_suspended(1);