Promote the type of the port argument, which comes right before any variable
arguments, to ensure va_start() doesn't run into undefined behaviour.
The alternative would be to shuffle the arguments so that a pointer is
the last non-variable argument, but that would break the ABI.
const char *type, /**< DNS-SD type, e.g. "_http._tcp" */
const char *domain,
const char *host, /**< Host name where this servcie resides, or NULL if on the local host */
- uint16_t port, /**< Port number of the service */
+ unsigned int port, /**< Port number of the service */
... /**< Text records, terminated by NULL */) CATTA_GCC_SENTINEL;
/** Mostly identical to catta_server_add_service(), but takes an CattaStringList object for the TXT records. The CattaStringList object is copied. */
const char *type,
const char *domain,
const char *host,
- uint16_t port,
+ unsigned int port,
... ){
va_list va;