Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 lint: reduce pointer indirection for unn...
details: https://anonhg.NetBSD.org/src/rev/67aa1e6c176e
branches: trunk
changeset: 371244:67aa1e6c176e
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Oct 01 09:59:40 2022 +0000
description:
lint: reduce pointer indirection for unnamed entities
No functional change.
diffstat:
usr.bin/xlint/lint1/decl.c | 6 +++---
usr.bin/xlint/lint1/externs1.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 3c8eaa5bdb32 -r 67aa1e6c176e usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c Sat Oct 01 09:48:02 2022 +0000
+++ b/usr.bin/xlint/lint1/decl.c Sat Oct 01 09:59:40 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.300 2022/10/01 09:42:40 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.301 2022/10/01 09:59:40 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: decl.c,v 1.300 2022/10/01 09:42:40 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.301 2022/10/01 09:59:40 rillig Exp $");
#endif
#include <sys/param.h>
@@ -48,7 +48,7 @@
#include "lint1.h"
-const char *unnamed = "<unnamed>";
+const char unnamed[] = "<unnamed>";
/* shared type structures for arithmetic types and void */
static type_t typetab[NTSPEC];
diff -r 3c8eaa5bdb32 -r 67aa1e6c176e usr.bin/xlint/lint1/externs1.h
--- a/usr.bin/xlint/lint1/externs1.h Sat Oct 01 09:48:02 2022 +0000
+++ b/usr.bin/xlint/lint1/externs1.h Sat Oct 01 09:59:40 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: externs1.h,v 1.169 2022/08/28 19:09:12 rillig Exp $ */
+/* $NetBSD: externs1.h,v 1.170 2022/10/01 09:59:40 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -180,7 +180,7 @@
* decl.c
*/
extern dinfo_t *dcs;
-extern const char *unnamed;
+extern const char unnamed[];
extern int enumval;
extern void initdecl(void);
Home |
Main Index |
Thread Index |
Old Index