From 83a09fd5ba67f739d69c9eb00aa0b076e252c2f2 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 3 Aug 2004 00:09:55 +0000 Subject: permit other types in a bit field (too common) --- usr.bin/xlint/lint1/decl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.bin/xlint') diff --git a/usr.bin/xlint/lint1/decl.c b/usr.bin/xlint/lint1/decl.c index 90d05c52a9e..c449b8e5789 100644 --- a/usr.bin/xlint/lint1/decl.c +++ b/usr.bin/xlint/lint1/decl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: decl.c,v 1.9 2004/07/21 17:23:52 millert Exp $ */ +/* $OpenBSD: decl.c,v 1.10 2004/08/03 00:09:54 deraadt Exp $ */ /* $NetBSD: decl.c,v 1.11 1995/10/02 17:34:16 jpo Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: decl.c,v 1.9 2004/07/21 17:23:52 millert Exp $"; +static char rcsid[] = "$OpenBSD: decl.c,v 1.10 2004/08/03 00:09:54 deraadt Exp $"; #endif #include @@ -1066,7 +1066,8 @@ decl1str(dsym) /* nonportable bit-field type */ warning(34); } - } else if (t != INT && t != UINT) { + } else if (t != INT && t != UINT && t != LONG && + t != ULONG && t != QUAD && t != UQUAD) { /* illegal bit-field type */ error(35); sz = tp->t_flen; -- cgit v1.2.3