diff options
Diffstat (limited to 'usr.sbin/tcpdump/util.c')
-rw-r--r-- | usr.sbin/tcpdump/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/util.c b/usr.sbin/tcpdump/util.c index a344e7b9ae0..082ae5236aa 100644 --- a/usr.sbin/tcpdump/util.c +++ b/usr.sbin/tcpdump/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.28 2019/01/26 00:53:57 procter Exp $ */ +/* $OpenBSD: util.c,v 1.29 2019/06/28 13:32:51 deraadt Exp $ */ /* * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997 @@ -266,10 +266,10 @@ read_infile(char *fname) char *cp; fd = open(fname, O_RDONLY); - if (fd < 0) + if (fd == -1) error("can't open %s: %s", fname, pcap_strerror(errno)); - if (fstat(fd, &buf) < 0) + if (fstat(fd, &buf) == -1) error("can't stat %s: %s", fname, pcap_strerror(errno)); if (buf.st_size >= SSIZE_MAX) |