From: Mark Wooding Date: Wed, 16 Feb 2022 18:55:24 +0000 (+0000) Subject: dvd-sector-copy.c: Split up the things which used to be in `struct source'. X-Git-Url: https://git.distorted.org.uk/~mdw/dvdrip/commitdiff_plain/eb061ad90afc5da082978449a4a8dd5a0732da16?hp=5cc1b8be9f072032c1b6f97a9ba658cc8d2183bf dvd-sector-copy.c: Split up the things which used to be in `struct source'. --- diff --git a/dvd-sector-copy.c b/dvd-sector-copy.c index 6fec2de..b2fa881 100644 --- a/dvd-sector-copy.c +++ b/dvd-sector-copy.c @@ -292,17 +292,12 @@ static void print_progress(const char *fmt, ...) va_end(ap); } -static dvd_reader_t *dvd; -static int dvdfd = -1; -static struct file *file; -static dvd_file_t *vob; - unsigned flags; # define F_ALLPROGRESS 1u static secaddr last_pos, limit, nsectors, ndone; static struct timeval last_time; static double wsum, wcount; -static const char *mapfile; static FILE *mapfp; +static struct file *file; static void report_progress(secaddr pos) { @@ -369,6 +364,11 @@ static void report_bad_blocks_progress(secaddr lo, secaddr hi, int err) fflush(stdout); } +static dvd_reader_t *dvd; +static int dvdfd = -1; +static dvd_file_t *vob; +static const char *mapfile; static FILE *mapfp; + static ssize_t read_sectors(secaddr pos, void *buf, secaddr want) { ssize_t n;