Module Name: src Committed By: rillig Date: Mon Mar 22 19:25:08 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: ckgetopt.c Log Message: lint: reduce visibility of global variable for getopt check No functional change. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/usr.bin/xlint/lint1/ckgetopt.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/ckgetopt.c diff -u src/usr.bin/xlint/lint1/ckgetopt.c:1.6 src/usr.bin/xlint/lint1/ckgetopt.c:1.7 --- src/usr.bin/xlint/lint1/ckgetopt.c:1.6 Sat Feb 20 10:12:52 2021 +++ src/usr.bin/xlint/lint1/ckgetopt.c Mon Mar 22 19:25:08 2021 @@ -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 @@ __RCSID("$NetBSD: ckgetopt.c,v 1.6 2021/ * 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.