Skip to content

Commit 4a92d3b

Browse files
committed
Fix some compiler warnings.
1 parent 4b903dd commit 4a92d3b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

cups/fuzzipp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ main(int argc, // I - Number of command-line arguments
9191
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "job-password-encryption", NULL, "none");
9292
ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, "print-color-mode", NULL, "color");
9393
ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_ENUM, "print-quality", IPP_QUALITY_HIGH);
94-
ippAddResolution(request, IPP_TAG_JOB, "printer-resolution", 1200, 1200, IPP_RES_PER_INCH);
94+
ippAddResolution(request, IPP_TAG_JOB, "printer-resolution", IPP_RES_PER_INCH, 1200, 1200);
9595
ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_INTEGER, "copies", 42);
9696
ippAddBoolean(request, IPP_TAG_JOB, "some-boolean-option", 1);
9797
ippAddString(request, IPP_TAG_JOB, IPP_TAG_URISCHEME, "some-uri-scheme", NULL, "mailto");

cups/ipp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,7 +2429,7 @@ ippNewRequest(ipp_op_t op) // I - Operation code
24292429
// Set the operation and request ID...
24302430
cupsMutexLock(&request_mutex);
24312431

2432-
request->request.op_status = op;
2432+
request->request.op_status = (short)op;
24332433
request->request.request_id = ++request_id;
24342434

24352435
cupsMutexUnlock(&request_mutex);
@@ -2904,7 +2904,7 @@ ippSetOperation(ipp_t *ipp, // I - IPP request message
29042904
return (false);
29052905

29062906
// Set the operation and return...
2907-
ipp->request.op_status = op;
2907+
ipp->request.op_status = (short)op;
29082908

29092909
return (true);
29102910
}
@@ -3051,7 +3051,7 @@ ippSetStatusCode(ipp_t *ipp, // I - IPP response or event message
30513051
return (false);
30523052

30533053
// Set the status code and return...
3054-
ipp->request.op_status = status;
3054+
ipp->request.op_status = (short)status;
30553055

30563056
return (true);
30573057
}
@@ -5307,7 +5307,7 @@ ipp_read_io(void *src, // I - Data source
53075307
// Then copy the request header over...
53085308
ipp->request.version[0] = buffer[0];
53095309
ipp->request.version[1] = buffer[1];
5310-
ipp->request.op_status = (buffer[2] << 8) | buffer[3];
5310+
ipp->request.op_status = (short)((buffer[2] << 8) | buffer[3]);
53115311
ipp->request.request_id = (buffer[4] << 24) | (buffer[5] << 16) | (buffer[6] << 8) | buffer[7];
53125312

53135313
DEBUG_printf("2ipp_read_io: version=%d.%d", buffer[0], buffer[1]);

0 commit comments

Comments
 (0)