summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcloder <cloder@openbsd.org>2005-11-23 20:36:41 +0000
committercloder <cloder@openbsd.org>2005-11-23 20:36:41 +0000
commitd640ef05fae2ee8c5769012cf2b452c469987a84 (patch)
tree0ba2ef08a7dd2bd96e4a68d516a83fa24dcf3c3f
parentuse sizeof instead of hard-coded values. (diff)
downloadwireguard-openbsd-d640ef05fae2ee8c5769012cf2b452c469987a84.tar.xz
wireguard-openbsd-d640ef05fae2ee8c5769012cf2b452c469987a84.zip
"inline" is a c99 keyword, so support it unless tflag is selected.
OK and input from millert, earlier version looked at by deraadt
-rw-r--r--usr.bin/xlint/lint1/scan.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xlint/lint1/scan.l b/usr.bin/xlint/lint1/scan.l
index a122444cf38..67e19cc8e81 100644
--- a/usr.bin/xlint/lint1/scan.l
+++ b/usr.bin/xlint/lint1/scan.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: scan.l,v 1.10 2005/11/23 18:47:41 cloder Exp $ */
+/* $OpenBSD: scan.l,v 1.11 2005/11/23 20:36:41 cloder Exp $ */
/* $NetBSD: scan.l,v 1.8 1995/10/23 13:38:51 jpo Exp $ */
/*
@@ -34,7 +34,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: scan.l,v 1.10 2005/11/23 18:47:41 cloder Exp $";
+static char rcsid[] = "$OpenBSD: scan.l,v 1.11 2005/11/23 20:36:41 cloder Exp $";
#endif
#include <stdlib.h>
@@ -211,7 +211,7 @@ static struct kwtab {
{ "for", T_FOR, 0, 0, 0, 0, 0 },
{ "goto", T_GOTO, 0, 0, 0, 0, 0 },
{ "if", T_IF, 0, 0, 0, 0, 0 },
- { "inline", T_SCLASS, INLINE, 0, 0, 0, 1 },
+ { "inline", T_SCLASS, INLINE, 0, 0, 1, 0 },
{ "__inline__", T_SCLASS, INLINE, 0, 0, 0, 0 },
{ "__inline", T_SCLASS, INLINE, 0, 0, 0, 0 },
{ "int", T_TYPE, 0, INT, 0, 0, 0 },