fix signed compare
This commit is contained in:
parent
ec23b4d29e
commit
043ad880a5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: npfd_log.c,v 1.8 2017/01/07 16:48:03 christos Exp $ */
|
||||
/* $NetBSD: npfd_log.c,v 1.9 2017/01/24 20:25:08 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2015 The NetBSD Foundation, Inc.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: npfd_log.c,v 1.8 2017/01/07 16:48:03 christos Exp $");
|
||||
__RCSID("$NetBSD: npfd_log.c,v 1.9 2017/01/24 20:25:08 christos Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -90,7 +90,9 @@ npfd_log_gethdr(npfd_log_t *ctx, struct pcap_file_header*hdr)
|
|||
case 1:
|
||||
if (hdr->magic != TCPDUMP_MAGIC ||
|
||||
hdr->version_major != PCAP_VERSION_MAJOR ||
|
||||
hdr->version_minor != PCAP_VERSION_MINOR)
|
||||
hdr->version_minor != PCAP_VERSION_MINOR ||
|
||||
hdr->linktype != (u_int)pcap_datalink(ctx->pcap) ||
|
||||
hdr->sigfigs != (u_int)pcap_get_tstamp_precision(ctx->pcap))
|
||||
goto out;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue