summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kvm_mkdb
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-09-06 19:04:49 +0000
committerderaadt <deraadt@openbsd.org>2002-09-06 19:04:49 +0000
commit23af68438c32a4904464a39b52c5eaf1d328900f (patch)
treea3e1b918eb7c7aab809023ad7f2c87104125b5d7 /usr.sbin/kvm_mkdb
parent; after label: (diff)
downloadwireguard-openbsd-23af68438c32a4904464a39b52c5eaf1d328900f.tar.xz
wireguard-openbsd-23af68438c32a4904464a39b52c5eaf1d328900f.zip
fopen() does not return < 0
Diffstat (limited to 'usr.sbin/kvm_mkdb')
-rw-r--r--usr.sbin/kvm_mkdb/nlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/kvm_mkdb/nlist.c b/usr.sbin/kvm_mkdb/nlist.c
index 7841e8a8992..e6c665cc3b4 100644
--- a/usr.sbin/kvm_mkdb/nlist.c
+++ b/usr.sbin/kvm_mkdb/nlist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nlist.c,v 1.27 2002/05/30 19:09:05 deraadt Exp $ */
+/* $OpenBSD: nlist.c,v 1.28 2002/09/06 19:04:49 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "from: @(#)nlist.c 8.1 (Berkeley) 6/6/93";
#else
-static char *rcsid = "$OpenBSD: nlist.c,v 1.27 2002/05/30 19:09:05 deraadt Exp $";
+static char *rcsid = "$OpenBSD: nlist.c,v 1.28 2002/09/06 19:04:49 deraadt Exp $";
#endif
#endif /* not lint */
@@ -310,7 +310,7 @@ __elf_knlist(fd, db, ksyms)
FILE *fp;
int usemalloc = 0;
- if ((fp = fdopen(fd, "r")) < 0)
+ if ((fp = fdopen(fd, "r")) == NULL)
err(1, "%s", kfile);
if (fseek(fp, (off_t)0, SEEK_SET) == -1 ||