summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-08 08:43:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-08 08:43:18 +0000
commit5ad7685892257c6025b202460cb65fdd042ed020 (patch)
tree0f85e3127429526431efe94001b80d40c8c3e102
parent837b4cfba2f816b3574b917df820b0b34e5188e3 (diff)
fix for sometimes/always ignored status; cato@ulysses.df.lth.se
-rw-r--r--usr.bin/xlint/lint2/chk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xlint/lint2/chk.c b/usr.bin/xlint/lint2/chk.c
index 536a579a285..d815b666b77 100644
--- a/usr.bin/xlint/lint2/chk.c
+++ b/usr.bin/xlint/lint2/chk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: chk.c,v 1.2 1996/06/26 05:44:21 deraadt Exp $ */
+/* $OpenBSD: chk.c,v 1.3 1997/09/08 08:43:17 deraadt Exp $ */
/* $NetBSD: chk.c,v 1.2 1995/07/03 21:24:42 cgd Exp $ */
/*
@@ -33,7 +33,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: chk.c,v 1.2 1996/06/26 05:44:21 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: chk.c,v 1.3 1997/09/08 08:43:17 deraadt Exp $";
#endif
#include <stdlib.h>
@@ -1177,7 +1177,7 @@ chkrvu(hte, def)
/* function has return value */
used = ignored = 0;
for (call = hte->h_calls; call != NULL; call = call->f_nxt) {
- used |= call->f_rused;
+ used |= call->f_rused || call->f_rdisc;
ignored |= !call->f_rused && !call->f_rdisc;
}
/*