1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/audio/radio/files/patch-ad

37 lines
865 B
Plaintext
Raw Normal View History

*** socklib.c.orig Mon May 17 01:46:25 1993
--- socklib.c Sat Jun 19 02:36:48 1999
***************
*** 76,82 ****
}
#endif
! if (bind(s, &sin, sizeof sin) < 0) {
sprintf(desc,"bind(%s)", sockdesc);
perror(desc);
close(s);
--- 76,82 ----
}
#endif
! if (bind(s, (struct sockaddr *)&sin, sizeof sin) < 0) {
sprintf(desc,"bind(%s)", sockdesc);
perror(desc);
close(s);
***************
*** 88,94 ****
setipaddr(remotename, &sin);
sin.sin_port = htons(remoteport);
! if (connect(s, &sin, sizeof sin) < 0) {
sprintf(desc, "connect(%s)", sockdesc);
perror(desc);
close(s);
--- 88,94 ----
setipaddr(remotename, &sin);
sin.sin_port = htons(remoteport);
! if (connect(s, (struct sockaddr *)&sin, sizeof sin) < 0) {
sprintf(desc, "connect(%s)", sockdesc);
perror(desc);
close(s);