summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 19:04:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 19:04:50 +0000
commit0de446eadda404fa5dee97d496951732f3a1ca67 (patch)
treee3cd638d6a5233fea872e77ebff29520c3b64bc9 /usr.sbin
parent7582288947442a2b1aec53c75ca6cc4701faa218 (diff)
fopen() does not return < 0
Diffstat (limited to 'usr.sbin')
-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 ||