mitsu9550: Move copy field to standard place in job header.

(Purely a cosmetic change, but it allows common code to display properly)
This commit is contained in:
Solomon Peachy 2020-02-11 17:22:39 -05:00
parent 4666ecaf94
commit 196db2230d
1 changed files with 5 additions and 2 deletions

View File

@ -109,6 +109,9 @@ struct mitsu9550_cmd {
/* Private data structure */
struct mitsu9550_printjob {
size_t jobsize;
int copies;
uint8_t *databuf;
uint32_t datalen;
@ -117,8 +120,6 @@ struct mitsu9550_printjob {
uint32_t plane_len;
int is_raw;
int copies;
/* Parse headers separately */
struct mitsu9550_hdr1 hdr1;
int hdr1_present;
@ -374,6 +375,8 @@ static int mitsu9550_read_parse(void *vctx, const void **vjob, int data_fd, int
}
memset(job, 0, sizeof(*job));
job->is_raw = 1;
job->jobsize = sizeof(*job);
job->copies = copies;
top:
/* Read in initial header */