Skip to content

Commit e8f3b78

Browse files
committed
Fix compiler warnings.
1 parent 11f4796 commit e8f3b78

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/ippeveprinter.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ create_printer(
14071407
ipp_t *attrs) // I - Capability attributes
14081408
{
14091409
ippeve_printer_t *printer; // Printer
1410-
int i; // Looping var
1410+
size_t i; // Looping var
14111411
ipp_attribute_t *attr; // Current attribute
14121412
#ifndef _WIN32
14131413
char path[1024]; // Full path to command
@@ -1838,8 +1838,6 @@ create_printer(
18381838

18391839
if (docformats)
18401840
{
1841-
ipp_attribute_t *attr; // Attribute
1842-
18431841
// document-format-default
18441842
if (!ippFindAttribute(printer->attrs, "document-format-default", IPP_TAG_MIMETYPE))
18451843
ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_MIMETYPE), "document-format-default", NULL, "application/octet-stream");

0 commit comments

Comments
 (0)