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 visibility of variables for...



details:   https://anonhg.NetBSD.org/src/rev/33aed357edc1
branches:  trunk
changeset: 953875:33aed357edc1
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Mar 22 19:29:43 2021 +0000

description:
lint: reduce visibility of variables for initializations

No functional change.

diffstat:

 usr.bin/xlint/lint1/init.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 629bd585e85b -r 33aed357edc1 usr.bin/xlint/lint1/init.c
--- a/usr.bin/xlint/lint1/init.c        Mon Mar 22 19:25:08 2021 +0000
+++ b/usr.bin/xlint/lint1/init.c        Mon Mar 22 19:29:43 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init.c,v 1.108 2021/03/20 08:54:27 rillig Exp $        */
+/*     $NetBSD: init.c,v 1.109 2021/03/22 19:29:43 rillig Exp $        */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: init.c,v 1.108 2021/03/20 08:54:27 rillig Exp $");
+__RCSID("$NetBSD: init.c,v 1.109 2021/03/22 19:29:43 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -211,10 +211,10 @@
 sym_t  *initsym;
 
 /* Points to the top element of the initialization stack. */
-initstack_element *initstk;
+static initstack_element *initstk;
 
 /* Points to a c9x named member; */
-namlist_t      *namedmem = NULL;
+static namlist_t *namedmem = NULL;
 
 
 static bool    init_array_using_string(tnode_t *);



Home | Main Index | Thread Index | Old Index