summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-07-24 14:51:12 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-07-25 09:44:00 -0700
commit131ceea7a5247514a265962d2078a526c40014c2 (patch)
tree67deb3271f8940aed74182b87c597e594c77190e
parent49861479860247a738eac6e041d4ec2758bc1a25 (diff)
downloadtar-131ceea7a5247514a265962d2078a526c40014c2.tar.gz
Fix minor type confusion
* src/tar.c (decode_options): Don’t assign ‘false’ to a pointer.
-rw-r--r--src/tar.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/tar.c b/src/tar.c
index 47144812..d4b87eb4 100644
--- a/src/tar.c
+++ b/src/tar.c
@@ -392,36 +392,36 @@ enum
{
GRH_COMMAND,
GRID_COMMAND, /* Main operation mode */
-
+
GRH_MODIFIER,
GRID_MODIFIER, /* Operation modifiers */
GRID_FILE_NAME,
-
+
GRH_OVERWRITE,
GRID_OVERWRITE, /* Overwrite control options */
-
+
GRH_OUTPUT,
GRID_OUTPUT, /* Output stream selection */
-
+
GRH_FATTR,
GRID_FATTR, /* File attributes (ownership and mode) */
-
+
GRH_XATTR,
GRID_XATTR, /* Extended file attributes */
-
+
GRH_DEVICE,
GRID_DEVICE, /* Device selection */
-
+
GRH_BLOCKING,
GRID_BLOCKING, /* Block and record length */
-
+
GRH_FORMAT,
GRID_FORMAT, /* Archive format options */
GRDOC_FORMAT,
GRID_FORMAT_OPT,
-
+
GRH_COMPRESS,
GRID_COMPRESS, /* Compression options */
@@ -1354,12 +1354,12 @@ parse_opt (int key, char *arg, struct argp_state *state)
if (state->root_argp->children)
{
int i;
-
+
for (i = 0; state->root_argp->children[i].argp; i++)
state->child_inputs[i] = state->input;
}
break;
-
+
case ARGP_KEY_ARG:
/* File name or non-parsed option, because of ARGP_IN_ORDER */
name_add_name (arg);
@@ -1751,7 +1751,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
case WARNING_OPTION:
set_warning_option (arg);
break;
-
+
case 'x':
set_subcommand_option (EXTRACT_SUBCOMMAND);
break;
@@ -2231,7 +2231,7 @@ parse_default_options (struct tar_args *args)
struct wordsplit ws;
struct option_locus loc = { OPTS_ENVIRON, "TAR_OPTIONS", 0, 0 };
struct option_locus *save_loc_ptr;
-
+
if (!opts)
return;
@@ -2252,7 +2252,7 @@ parse_default_options (struct tar_args *args)
abort (); /* shouldn't happen */
args->loc = save_loc_ptr;
if (name_more_files ())
- USAGE_ERROR ((0, 0, _("non-option arguments in %s"), loc.name));
+ USAGE_ERROR ((0, 0, _("non-option arguments in %s"), loc.name));
/* Don't free consumed words */
ws.ws_wordc = 0;
}
@@ -2632,7 +2632,7 @@ decode_options (int argc, char **argv)
if (optloc_eq (preserve_order_loc, listed_incremental_loc))
option_conflict_error ("--preserve-order", "--listed-incremental");
else if (preserve_order_loc->source == OPTS_COMMAND_LINE)
- listed_incremental_option = false;
+ listed_incremental_option = NULL;
else
same_order_option = false;
}