From 0de446eadda404fa5dee97d496951732f3a1ca67 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 6 Sep 2002 19:04:50 +0000 Subject: fopen() does not return < 0 --- usr.sbin/kvm_mkdb/nlist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin') 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 || -- cgit v1.2.3