mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-06 08:43:02 +02:00
Make still more file-scope variables `static'.
This commit is contained in:
+4
-4
@@ -317,7 +317,7 @@ struct control_info
|
||||
|
||||
/* Control characters. */
|
||||
|
||||
struct control_info control_info[] =
|
||||
static struct control_info control_info[] =
|
||||
{
|
||||
{"intr", CINTR, VINTR},
|
||||
{"quit", CQUIT, VQUIT},
|
||||
@@ -354,12 +354,12 @@ struct control_info control_info[] =
|
||||
};
|
||||
|
||||
/* The width of the screen, for output wrapping. */
|
||||
int max_col;
|
||||
static int max_col;
|
||||
|
||||
/* Current position, to know when to wrap. */
|
||||
int current_col;
|
||||
static int current_col;
|
||||
|
||||
struct option longopts[] =
|
||||
static struct option longopts[] =
|
||||
{
|
||||
{"all", 0, NULL, 'a'},
|
||||
{"save", 0, NULL, 'g'},
|
||||
|
||||
@@ -153,15 +153,15 @@ extern char **environ;
|
||||
char *program_name;
|
||||
|
||||
/* If nonzero, pass the `-f' option to the subshell. */
|
||||
int fast_startup;
|
||||
static int fast_startup;
|
||||
|
||||
/* If nonzero, simulate a login instead of just starting a shell. */
|
||||
int simulate_login;
|
||||
static int simulate_login;
|
||||
|
||||
/* If nonzero, change some environment vars to indicate the user su'd to. */
|
||||
int change_environment;
|
||||
static int change_environment;
|
||||
|
||||
struct option longopts[] =
|
||||
static struct option longopts[] =
|
||||
{
|
||||
{"command", 1, 0, 'c'},
|
||||
{"fast", 0, &fast_startup, 1},
|
||||
|
||||
@@ -29,15 +29,15 @@ void error ();
|
||||
void xwrite ();
|
||||
|
||||
/* If nonzero, append to output files rather than truncating them. */
|
||||
int append;
|
||||
static int append;
|
||||
|
||||
/* If nonzero, ignore interrupts. */
|
||||
int ignore_interrupts;
|
||||
static int ignore_interrupts;
|
||||
|
||||
/* The name that this program was run with. */
|
||||
char *program_name;
|
||||
|
||||
struct option long_options[] =
|
||||
static struct option long_options[] =
|
||||
{
|
||||
{"append", 0, NULL, 'a'},
|
||||
{"ignore-interrupts", 0, NULL, 'i'},
|
||||
|
||||
@@ -32,9 +32,9 @@ void usage ();
|
||||
char *program_name;
|
||||
|
||||
/* If nonzero, return an exit status but produce no output. */
|
||||
int silent;
|
||||
static int silent;
|
||||
|
||||
struct option longopts[] =
|
||||
static struct option longopts[] =
|
||||
{
|
||||
{"silent", 0, NULL, 's'},
|
||||
{"quiet", 0, NULL, 's'},
|
||||
|
||||
+2
-2
@@ -55,12 +55,12 @@ void usage ();
|
||||
#define PRINT_MACHINE 16
|
||||
|
||||
/* Mask indicating which elements of the name to print. */
|
||||
unsigned char toprint;
|
||||
static unsigned char toprint;
|
||||
|
||||
/* The name this program was run with, for error messages. */
|
||||
char *program_name;
|
||||
|
||||
struct option long_options[] =
|
||||
static struct option long_options[] =
|
||||
{
|
||||
{"sysname", 0, NULL, 's'},
|
||||
{"nodename", 0, NULL, 'n'},
|
||||
|
||||
Reference in New Issue
Block a user