Skip to content

Commit

Permalink
dns_sd: Fix wrong type used for "port"
Browse files Browse the repository at this point in the history
The "port" is a uint16_t, not a int. The wrong format caused a
compilation issue on OSX.

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed Mar 28, 2022
1 parent 94c43ce commit d03eb96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dns_sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d03eb96

Please sign in to comment.