diff options
author | Jim Meyering <jim@meyering.net> | 1992-11-01 03:30:09 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1992-11-01 03:30:09 +0000 |
commit | 144b82c6c22abaa2a3247dc33b286662a7aa90d9 (patch) | |
tree | bbd19ca5dd38607ced11823281da205091b645d4 /src/mv.c | |
parent | cdb20814d2dbd70ac952285ebe01372f513849fd (diff) | |
download | coreutils-144b82c6c22abaa2a3247dc33b286662a7aa90d9.tar.xz |
Give most file-scope variables the static attribute.
Diffstat (limited to 'src/mv.c')
-rw-r--r-- | src/mv.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -66,26 +66,26 @@ void usage (); char *program_name; /* If nonzero, query the user before overwriting files. */ -int interactive; +static int interactive; /* If nonzero, do not query the user before overwriting unwritable files. */ -int override_mode; +static int override_mode; /* If nonzero, do not move a nondirectory that has an existing destination with the same or newer modification time. */ -int update = 0; +static int update = 0; /* If nonzero, list each file as it is moved. */ -int verbose; +static int verbose; /* If nonzero, stdin is a tty. */ -int stdin_tty; +static int stdin_tty; /* This process's effective user ID. */ -uid_t myeuid; +static uid_t myeuid; -struct option long_options[] = +static struct option long_options[] = { {"backup", 0, NULL, 'b'}, {"force", 0, NULL, 'f'}, @@ -193,7 +193,7 @@ movefile (source, dest) return do_move (source, dest); } -struct stat dest_stats, source_stats; +static struct stat dest_stats, source_stats; /* Move SOURCE onto DEST. Handles cross-filesystem moves. If DEST is a directory, SOURCE must be also. |