From d03eb96e5db4668a2ccd8452dfdf6b3b10cb8b73 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Mon, 28 Mar 2022 17:29:30 +0100 Subject: [PATCH] dns_sd: Fix wrong type used for "port" The "port" is a uint16_t, not a int. The wrong format caused a compilation issue on OSX. Signed-off-by: Paul Cercueil --- dns_sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns_sd.c b/dns_sd.c index 970d2548d..cc807944a 100644 --- a/dns_sd.c +++ b/dns_sd.c @@ -78,7 +78,7 @@ static void dnssd_remove_node(struct dns_sd_discovery_data **ddata, int n) */ static int dnssd_fill_context_info(struct iio_context_info *info, - char *hostname, char *addr_str, int port) + char *hostname, char *addr_str, uint16_t port) { struct iio_context *ctx; char uri[sizeof("ip:") + MAXHOSTNAMELEN + sizeof (":65535") + 1];