From 0a525b9bebd36d6d762a5a5fe91299d4d38c5ce9 Mon Sep 17 00:00:00 2001 From: Raluca Groza Date: Fri, 23 Jun 2023 10:42:11 +0300 Subject: [PATCH] network: fix snprintf format string for MinGW Signed-off-by: Raluca Groza --- network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network.c b/network.c index 511322adb..f3916ff80 100644 --- a/network.c +++ b/network.c @@ -320,7 +320,7 @@ static char * network_get_description(struct addrinfo *res) if (errno == 0) { /* Windows uses numerical interface identifiers */ ptr = description + strnlen(description, len) + 1; - iio_snprintf(ptr, IF_NAMESIZE, "%u", in->sin6_scope_id); + iio_snprintf(ptr, IF_NAMESIZE, "%lu", in->sin6_scope_id); } else #endif {