Skip to content

Commit

Permalink
Fix obsolete constant name so that package builds with libcups of CUP…
Browse files Browse the repository at this point in the history
…S 2.5.x (#36)

HTTP_URI_OK -> HTTP_URI_STATUS_OK

Package will continue to build with libcups of any older CUPS 2.x.
  • Loading branch information
metabiswadeep authored Oct 18, 2023
1 parent a75f7e5 commit 4a2a4cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cupsfilters/ipp.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ cfGetPrinterAttributes5(http_t *http_printer,
host_name, sizeof(host_name),
&(host_port),
resource, sizeof(resource));
if (uri_status != HTTP_URI_OK)
if (uri_status != HTTP_URI_STATUS_OK)
{
// Invalid URI
log_printf(cf_get_printer_attributes_log,
Expand Down Expand Up @@ -527,7 +527,7 @@ cfResolveURI2 (const char *uri, int is_fax)
userpass, sizeof(userpass),
hostname, sizeof(hostname), &port, resource,
sizeof(resource));
if (status < HTTP_URI_OK)
if (status < HTTP_URI_STATUS_OK)
// Invalid URI
goto error;

Expand Down

0 comments on commit 4a2a4cf

Please sign in to comment.