Remove do_listing variable

This commit is contained in:
King_DuckZ 2020-03-03 15:49:02 +01:00
parent ba3de80478
commit 35b4e24e98

View file

@ -132,7 +132,6 @@ EXPORT FILE *infile = NULL;
EXPORT BOOL ignerr = FALSE;
LOCAL int use_rock = 0;
LOCAL int use_joliet = 0;
LOCAL int do_listing = 0;
LOCAL int do_f = 0;
LOCAL int do_find = 0;
LOCAL int find_ac = 0; /* ac past -find option */
@ -526,9 +525,9 @@ dump_stat(rootname, idr, fname, extent)
if (do_find) {
if (!find_stat(rootname, idr, fname, extent))
return (FALSE);
if (!do_listing || find_print)
if (find_print)
return (TRUE);
} else if (!do_listing)
} else
return (TRUE);
memset(outline, ' ', sizeof (outline));
@ -949,10 +948,6 @@ parse_dir(dp, rootname, extent, len)
static char *n = 0;
static int nlen = 0;
if (do_listing && (!do_find || !find_print))
printf(_("\nDirectory listing of %s\n"), rootname);
rlen = strlen(rootname);
while (len > 0) {
@ -1055,7 +1050,7 @@ static int nlen = 0;
(idr->name[0] != 0 && idr->name[0] != 1))) {
printf("%s\n", n);
}
if (do_listing || Xtract || do_find) {
if (Xtract || do_find) {
/*
* In case if a multi-extent file, remember the
* start extent number.