From 35b4e24e989ee24639b11f7f96eb90d788e53c23 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Tue, 3 Mar 2020 15:49:02 +0100 Subject: [PATCH] Remove do_listing variable --- subprojects/isoinfo/src/isoinfo.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/subprojects/isoinfo/src/isoinfo.c b/subprojects/isoinfo/src/isoinfo.c index 93b185e..66591c8 100644 --- a/subprojects/isoinfo/src/isoinfo.c +++ b/subprojects/isoinfo/src/isoinfo.c @@ -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.