Module Name:    src
Committed By:   rillig
Date:           Wed Jul 12 20:13:28 UTC 2023

Modified Files:
        src/usr.bin/xlint/lint1: lex.c

Log Message:
lint: reduce runtime relocations


To generate a diff of this commit:
cvs rdiff -u -r1.177 -r1.178 src/usr.bin/xlint/lint1/lex.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/lint1/lex.c
diff -u src/usr.bin/xlint/lint1/lex.c:1.177 src/usr.bin/xlint/lint1/lex.c:1.178
--- src/usr.bin/xlint/lint1/lex.c:1.177	Wed Jul 12 18:26:04 2023
+++ src/usr.bin/xlint/lint1/lex.c	Wed Jul 12 20:13:28 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: lex.c,v 1.177 2023/07/12 18:26:04 rillig Exp $ */
+/* $NetBSD: lex.c,v 1.178 2023/07/12 20:13:28 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID)
-__RCSID("$NetBSD: lex.c,v 1.177 2023/07/12 18:26:04 rillig Exp $");
+__RCSID("$NetBSD: lex.c,v 1.178 2023/07/12 20:13:28 rillig Exp $");
 #endif
 
 #include <ctype.h>
@@ -96,7 +96,7 @@ bool in_system_header;
 
 /* During initialization, these keywords are written to the symbol table. */
 static const struct keyword {
-	const	char *kw_name;
+	const	char kw_name[20];
 	int	kw_token;	/* token to be returned by yylex() */
 	union {
 		bool kw_dummy;

Reply via email to