mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
maint: comm: prefer static initialization
* src/comm.c (only_file_1, only_file_2, both): Initialize variables. (main): Remove unnecessary initializations.
This commit is contained in:
1 parent
ecf3f98eec
commit
dc0baaf4de
1 file changed
+3
-12
+3
-12
@@ -40,13 +40,13 @@
|
||||
static bool hard_LC_COLLATE;
|
||||
|
||||
/* If true, print lines that are found only in file 1. */
|
||||
static bool only_file_1;
|
||||
static bool only_file_1 = true;
|
||||
|
||||
/* If true, print lines that are found only in file 2. */
|
||||
static bool only_file_2;
|
||||
static bool only_file_2 = true;
|
||||
|
||||
/* If true, print lines that are found in both files. */
|
||||
static bool both;
|
||||
static bool both = true;
|
||||
|
||||
/* If nonzero, we have seen at least one unpairable line. */
|
||||
static bool seen_unpairable;
|
||||
@@ -434,15 +434,6 @@ main (int argc, char **argv)
|
||||
|
||||
atexit (close_stdout);
|
||||
|
||||
only_file_1 = true;
|
||||
only_file_2 = true;
|
||||
both = true;
|
||||
|
||||
seen_unpairable = false;
|
||||
issued_disorder_warning[0] = issued_disorder_warning[1] = false;
|
||||
check_input_order = CHECK_ORDER_DEFAULT;
|
||||
total_option = false;
|
||||
|
||||
while ((c = getopt_long (argc, argv, "123z", long_options, NULL)) != -1)
|
||||
switch (c)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user