summaryrefslogtreecommitdiff
path: root/usr.bin/xlint
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-08-03 00:09:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-08-03 00:09:55 +0000
commit83a09fd5ba67f739d69c9eb00aa0b076e252c2f2 (patch)
treec49111a364a2cc1c854076197b347bed250f41d3 /usr.bin/xlint
parent99f4f90e4ec70ef21b619faf144649e7e442fdd1 (diff)
permit other types in a bit field (too common)
Diffstat (limited to 'usr.bin/xlint')
-rw-r--r--usr.bin/xlint/lint1/decl.c7
1 files changed, 4 insertions, 3 deletions
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 <sys/param.h>
@@ -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;