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 global variab...



details:   https://anonhg.NetBSD.org/src/rev/9ce0901da38a
branches:  trunk
changeset: 960606:9ce0901da38a
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Mar 22 19:25:08 2021 +0000

description:
lint: reduce visibility of global variable for getopt check

No functional change.

diffstat:

 usr.bin/xlint/lint1/ckgetopt.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2953a48481b2 -r 9ce0901da38a usr.bin/xlint/lint1/ckgetopt.c
--- a/usr.bin/xlint/lint1/ckgetopt.c    Mon Mar 22 18:41:11 2021 +0000
+++ b/usr.bin/xlint/lint1/ckgetopt.c    Mon Mar 22 19:25:08 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ckgetopt.c,v 1.6 2021/02/20 10:12:52 rillig Exp $ */
+/* $NetBSD: ckgetopt.c,v 1.7 2021/03/22 19:25:08 rillig Exp $ */
 
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: ckgetopt.c,v 1.6 2021/02/20 10:12:52 rillig Exp $");
+__RCSID("$NetBSD: ckgetopt.c,v 1.7 2021/03/22 19:25:08 rillig Exp $");
 #endif
 
 #include <stdbool.h>
@@ -50,7 +50,7 @@
  * is listed in the options string.
  */
 
-struct {
+static struct {
        /*
         * 0    means outside a while loop with a getopt call.
         * 1    means directly inside a while loop with a getopt call.



Home | Main Index | Thread Index | Old Index