Skip to content

Commit 0b266ea

Browse files
jscott0tillkamppeter
authored andcommitted
Remove superfluous conversion of ippGetLength()'s return value to 'long long'
Both ippGetLength() (CUPS 3) and its predecessor ippLength() (CUPS 2) have always returned size_t, so use the format specifier for that. Because 'long long' is a signed type that need not have greater width than size_t, this conversion may not do the right thing.
1 parent 09a2072 commit 0b266ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ppd/ppd-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4515,7 +4515,7 @@ ppdCacheWriteFile(
45154515

45164516
if (attrs)
45174517
{
4518-
cupsFilePrintf(fp, "IPP " CUPS_LLFMT "\n", CUPS_LLCAST ippGetLength(attrs));
4518+
cupsFilePrintf(fp, "IPP %zu\n", ippGetLength(attrs));
45194519

45204520
ippSetState(attrs, IPP_STATE_IDLE);
45214521
ippWriteIO(fp, (ipp_io_cb_t)cupsFileWrite, 1, NULL, attrs);

0 commit comments

Comments
 (0)