Skip to content

Commit 25714d1

Browse files
ccralucapcercuei
authored andcommitted
network: fix snprintf format string for MinGW
MinGW build fail on unsigned int argument because long unsigned int is expected. Signed-off-by: Raluca Groza <[email protected]>
1 parent 28e1b30 commit 25714d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

network.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static char * network_get_description(struct addrinfo *res)
320320
if (errno == 0) {
321321
/* Windows uses numerical interface identifiers */
322322
ptr = description + strnlen(description, len) + 1;
323-
iio_snprintf(ptr, IF_NAMESIZE, "%u", in->sin6_scope_id);
323+
iio_snprintf(ptr, IF_NAMESIZE, "%u", (unsigned int)in->sin6_scope_id);
324324
} else
325325
#endif
326326
{

0 commit comments

Comments
 (0)