0
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2025-06-30 22:18:29 -04:00

Fix: Added pointer related fixes for win*

This commit is contained in:
Philipp Schafft 2024-10-25 22:25:19 +00:00
parent 07df2860f8
commit 03b7126fc4
2 changed files with 3 additions and 3 deletions

View File

@ -1038,8 +1038,8 @@ avl_verify_rank (avl_node * node)
num_right = avl_verify_rank (node->right);
}
if (AVL_GET_RANK (node) != num_left + 1) {
fprintf (stderr, "invalid rank at node %ld\n", (long) node->key);
exit (1);
fprintf(stderr, "invalid rank at node %p\n", node->key);
exit(1);
}
return (num_left + num_right + 1);
}

View File

@ -665,7 +665,7 @@ sock_t sock_get_server_socket (int port, const char *sinterface, bool prefer_ine
#ifdef IPV6_V6ONLY
on = 0;
setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on));
setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (const void *)&on, sizeof(on));
#endif
if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0){