| 3344 | */ |
| 3345 | |
| 3346 | int /* O - 1 on success, 0 on failure */ |
| 3347 | ippSetRequestId(ipp_t *ipp, /* I - IPP message */ |
| 3348 | int request_id) /* I - Request ID */ |
| 3349 | { |
| 3350 | /* |
| 3351 | * Range check input; not checking request_id values since ipptool wants to send |
| 3352 | * invalid values for conformance testing and a bad request_id does not affect the |
| 3353 | * encoding of a message... |
| 3354 | */ |
| 3355 | |
| 3356 | if (!ipp) |
| 3357 | return (0); |
| 3358 | |
| 3359 | /* |
| 3360 | * Set the request ID and return... |
| 3361 | */ |
| 3362 | |
| 3363 | ipp->request.any.request_id = request_id; |
| 3364 | |
| 3365 | return (1); |
| 3366 | } |
| 3367 | |
| 3368 | |
| 3369 | /* |
no outgoing calls
no test coverage detected