Skip to content

Commit

Permalink
Fix constant name.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Apr 6, 2024
1 parent a88910b commit 0901967
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions cups/dnssd.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ cupsDNSSDBrowseGetContext(
cups_dnssd_browse_t * // O - Browse request or `NULL` on error
cupsDNSSDBrowseNew(
cups_dnssd_t *dnssd, // I - DNS-SD context
uint32_t if_index, // I - Interface index, `CUPS_DNSSD_IF_ANY`, or `CUPS_DNSSD_IF_LOCAL`
uint32_t if_index, // I - Interface index, `CUPS_DNSSD_IF_INDEX_ANY`, or `CUPS_DNSSD_IF_INDEX_LOCAL`
const char *types, // I - Service types
const char *domain, // I - Domain name or `NULL` for default
cups_dnssd_browse_cb_t browse_cb, // I - Browse callback function
Expand Down Expand Up @@ -784,7 +784,7 @@ cupsDNSSDQueryGetContext(
cups_dnssd_query_t * // O - Query request or `NULL` on error
cupsDNSSDQueryNew(
cups_dnssd_t *dnssd, // I - DNS-SD context
uint32_t if_index, // I - Interface index or `CUPS_DNSSD_IF_ANY` or `CUPS_DNSSD_IF_LOCAL`
uint32_t if_index, // I - Interface index or `CUPS_DNSSD_IF_INDEX_ANY` or `CUPS_DNSSD_IF_INDEX_LOCAL`
const char *fullname, // I - Full DNS name including types and domain
uint16_t rrtype, // I - Record type to query (`CUPS_DNSSD_RRTYPE_TXT`, etc.)
cups_dnssd_query_cb_t query_cb, // I - Query callback function
Expand Down Expand Up @@ -918,7 +918,7 @@ cupsDNSSDResolveGetContext(
cups_dnssd_resolve_t * // O - Resolve request or `NULL` on error
cupsDNSSDResolveNew(
cups_dnssd_t *dnssd, // I - DNS-SD context
uint32_t if_index, // I - Interface index or `CUPS_DNSSD_IF_ANY` or `CUPS_DNSSD_IF_LOCAL`
uint32_t if_index, // I - Interface index or `CUPS_DNSSD_IF_INDEX_ANY` or `CUPS_DNSSD_IF_INDEX_LOCAL`
const char *name, // I - Service name
const char *type, // I - Service type
const char *domain, // I - Domain name or `NULL` for default
Expand Down Expand Up @@ -1082,7 +1082,7 @@ cupsDNSSDServiceAdd(

// Avahi has trouble with hostnames for services that are only available on
// the loopback interface/localhost...
if (service->if_index == CUPS_DNSSD_IF_LOCAL || !_cups_strcasecmp(host, "localhost"))
if (service->if_index == CUPS_DNSSD_IF_INDEX_LOCAL || !_cups_strcasecmp(host, "localhost"))
host = NULL;

// Build the string list from the TXT array...
Expand Down Expand Up @@ -1207,7 +1207,7 @@ cupsDNSSDServiceGetName(
cups_dnssd_service_t * // O - Service or `NULL` on error
cupsDNSSDServiceNew(
cups_dnssd_t *dnssd, // I - DNS-SD context
uint32_t if_index, // I - Interface index, `CUPS_DNSSD_IF_ANY`, or `CUPS_DNSSD_IF_LOCAL`
uint32_t if_index, // I - Interface index, `CUPS_DNSSD_IF_INDEX_ANY`, or `CUPS_DNSSD_IF_INDEX_LOCAL`
const char *name, // I - Name of service
cups_dnssd_service_cb_t cb, // I - Service registration callback function
void *cb_data) // I - Service registration callback data
Expand Down
4 changes: 2 additions & 2 deletions cups/ppd-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -3141,8 +3141,8 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */


/*
* '_ppdCreateFromIPP()' - Create a PPD file describing the capabilities
* of an IPP printer.
* '_ppdCreateFromIPP2()' - Create a PPD file describing the capabilities
* of an IPP printer.
*/


Expand Down

0 comments on commit 0901967

Please sign in to comment.