Norbert Koch <nk(a)LF.net> writes:
diff -u -r1.2 udp2tcp.cc
--- udp2tcp.cc 2000/10/23 15:48:59 1.2
+++ udp2tcp.cc 2001/01/21 13:45:19
@@ -334,7 +334,7 @@
printf("accepting....\n");
size_t sin_size = sizeof(struct sockaddr_in);
tcp_new_sock = accept(tcp_sock, (struct sockaddr *)&tcp_remote_addr,
- &sin_size);
+ (int *)&sin_size);
sock_error_exit(tcp_new_sock == -1, "accept");
This should rather be socklen_t. A configure check should define it to
int if socklen_t is not available. Perhaps there is such a check
already. See accept(2) on a linux system for a lengthy explanation.
Falk