bd44d3026d
- regen one other patch while here
24 lines
830 B
Plaintext
24 lines
830 B
Plaintext
$OpenBSD: patch-src_lat_udp_c,v 1.1 2011/07/08 09:33:25 jasper Exp $
|
|
--- src/lat_udp.c.orig Sat Nov 11 19:42:42 1995
|
|
+++ src/lat_udp.c Fri Jul 8 11:31:35 2011
|
|
@@ -96,7 +96,8 @@ server_main(ac, av)
|
|
|
|
while (1) {
|
|
namelen = sizeof(it);
|
|
- if (recvfrom(sock, &sent, sizeof(sent), 0, &it, &namelen) < 0) {
|
|
+ if (recvfrom(sock, &sent, sizeof(sent), 0,
|
|
+ (struct sockaddr*) &it, &namelen) < 0) {
|
|
fprintf(stderr, "lat_udp server: recvfrom: got wrong size\n");
|
|
exit(9);
|
|
}
|
|
@@ -108,7 +109,8 @@ server_main(ac, av)
|
|
printf("lat_udp server: wanted %d, got %d, resyncing\n", seq, sent); /**/
|
|
seq = sent;
|
|
}
|
|
- if (sendto(sock, &seq, sizeof(seq), 0, &it, sizeof(it)) < 0) {
|
|
+ if (sendto(sock, &seq, sizeof(seq), 0,
|
|
+ (struct sockaddr*) &it, sizeof(it)) < 0) {
|
|
perror("lat_udp sendto");
|
|
exit(9);
|
|
}
|