| 3900 | */ |
| 3901 | |
| 3902 | int /* O - 1 on success, 0 on failure */ |
| 3903 | ippSetVersion(ipp_t *ipp, /* I - IPP message */ |
| 3904 | int major, /* I - Major version number (major.minor) */ |
| 3905 | int minor) /* I - Minor version number (major.minor) */ |
| 3906 | { |
| 3907 | /* |
| 3908 | * Range check input... |
| 3909 | */ |
| 3910 | |
| 3911 | if (!ipp || major < 0 || minor < 0) |
| 3912 | return (0); |
| 3913 | |
| 3914 | /* |
| 3915 | * Set the version number... |
| 3916 | */ |
| 3917 | |
| 3918 | ipp->request.any.version[0] = (ipp_uchar_t)major; |
| 3919 | ipp->request.any.version[1] = (ipp_uchar_t)minor; |
| 3920 | |
| 3921 | return (1); |
| 3922 | } |
| 3923 | |
| 3924 | |
| 3925 | /* |
no outgoing calls
no test coverage detected