Update some comments for consistency

This commit is contained in:
Solomon Peachy 2025-01-05 21:00:34 -05:00
parent 55a3a82321
commit b66656fd7d
4 changed files with 4 additions and 4 deletions

View file

@ -2425,7 +2425,7 @@ parsed:
return CUPS_BACKEND_CANCEL;
}
/* Use the larger of the copy arguments */
/* Use larger of the copy arguments */
if (!job->is_pano && job->common.copies < copies)
job->common.copies = copies;

View file

@ -2034,7 +2034,7 @@ static int hiti_read_parse(void *vctx, const void **vjob, int data_fd, int copie
return CUPS_BACKEND_CANCEL;
}
/* Use whicever copy count is larger */
/* Use larger of our copy counts */
if (job->common.copies < (int)job->hdr.copies)
job->common.copies = job->hdr.copies;

View file

@ -912,7 +912,7 @@ static int shinkos2145_read_parse(void *vctx, const void **vjob, int data_fd, in
return ret;
}
/* Use whicever copy count is larger */
/* Use larger of our copy counts */
if (job->common.copies < copies)
job->common.copies = copies;

View file

@ -673,7 +673,7 @@ static int upd_read_parse(void *vctx, const void **vjob, int data_fd, int copies
uint16_t tmp;
memcpy(&tmp, job->databuf + copies_offset, sizeof(tmp));
tmp = be16_to_cpu(tmp);
if (tmp < copies) { /* Use whichever one is larger */
if (tmp < copies) { /* Use larger of our copy counts */
tmp = cpu_to_be16(copies);
memcpy(job->databuf + copies_offset, &tmp, sizeof(tmp));
}